sed script help

From: pelicancomputers (rfransix@yahoo.com)
Date: Tue Sep 24 2002 - 15:15:31 EDT


i have a sed script that drops in two lines of text
after every dn:

i have an ldif file where each dn: expands two lines,
my sed script only works when the dn: is one line.

how can i modify this script to drop in lines of text
after the second carriage return after each dn:

#!/bin/sh
sed -e '/^dn:/a\
changetype: modify\
replace: userpassword' < $1 > $2

thank you. rf
New DSL Internet Access from SBC & Yahoo!
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:59 EDT