#!/bin/sh

# put each paragraph from LDIF on one line for easier grepping etc.
# This script is used by ldif-normalise and test-directory.sh

# 1. join continuation lines, normalise whitespace, remove comments, linify

sed 's/$//;$!{;/./{;H;d;};};$H;x;s/\n //g;s/  */ /g;s/\n#[^\n]*//g;s/\n/||/g'
