the most elegant answers were the same answers. thank you all again. #!/bin/sh sed -e '/^dn:/a\ changetype: modify\ replace: userpassword' < a > b --- pelicancomputers <rfransix@yahoo.com> wrote: > i can't get this, any help is welcome, thank you. > > i want to insert two lines after line that begins > with > dn: > > #!/bin/sh > sed 'dn: *'\i > changetype: modify > replace: userpassword' < 1.ldif > 2.ldif > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > _______________________________________________ > sunmanagers mailing list > sunmanagers@sunmanagers.org > http://www.sunmanagers.org/mailman/listinfo/sunmanagers Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Sun Jul 7 17:24:39 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:48 EST