Appending text in a file

Jonathan Hutchins hutchins at tarcanfel.org
Fri Apr 25 20:41:55 CDT 2003


I have an LDIF file with a bit over 300 entries.  I need to append some text 
(",ou=contacts,dc=tarcanfel,dc=net")  to each line that begins with "dn:". 
 
Surely there's an easy way to script this. 
 
Using sed, I can append text, but only as the next line. 

---------------------------------------------------
This mail sent through tarcanfel's horde/imp system




More information about the Kclug mailing list