in reply to fixing broken ldif files (replacing = with : )

Try this

perl -000 -pe"s[(^\w+)=][$1: ]mg" ldif.bad >ldif.good

Examine what is said, not who speaks.
"But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen
"Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo         "Efficiency is intelligent laziness." -David Dunham
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: fixing broken ldif files (replacing = with : )
by riffraff (Pilgrim) on Dec 10, 2004 at 02:09 UTC
    Or an even simpler solution, not using perl:

    sed -e 's/=/: /' ldif.bad > ldif.good