Appending text in a file

Jason Clinton me at jasonclinton.com
Fri Apr 25 22:03:58 CDT 2003


Steven Elling wrote:
> Just do the following in your case:
>
> cat old.ldif | > sed -e 's/(dn:.*)/1,ou=contacts,dc=tarcanfel,dc=net/' > new.ldif

Hehe. "Just..." If it's any consolation, Jonathan, I look at lines like
this and my eyes cross too. :)

To be fair, really should learn sed and awk sometime soon.

--
Jason Clinton
I don't believe in witty sigs.





More information about the Kclug mailing list