docs:tips_n_tricks:sed.html
This is an old revision of the document!
sed
Multiline Input
The following will concatenate continuation lines in an LDAP dump in ldif format to a “relaxed” ldif format with arbitrary long lines:
sed -n '1h;1!H;${g;s/\n //g;p;}' /tmp/ldap_schema.ldif > /tmp/ldap_schema_longline.ldif
Thanks to Austin Matzko for giving a working example.
docs/tips_n_tricks/sed.html.1298390960.txt.gz · Last modified: 22.02.2011 17:09 CET by peter