SUMMARY: sed script help

From: pelicancomputers (rfransix@yahoo.com)
Date: Tue Jul 02 2002 - 12:40:15 EDT


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/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:33 EDT