in reply to perl one-liner, is it possible?

Sure!
perl -i -e '$/=\32000; while(<>) {s/\s{2}//sg;print $_;}' oid.ldif

Change the input record separator, so that instead of the reading of the file breaks on new lines, we read chunks of data.
Next, just substitute the two white space characters ('\n' and ' ') with nothing and the lines get concatenated.

--
olus

Replies are listed 'Best First'.
Re^2: perl one-liner, is it possible?
by Mago (Parson) on Feb 09, 2006 at 09:30 UTC
    perl -pi -e 'BEGIN { $/=\32000 } s/\s{2}//sg' oid.ldif


    Mago
    mago@rio.pm.org