sed question

Leo de Wit leo at philmds.UUCP
Sat Jan 28 19:43:22 AEST 1989


In article <938 at philmds.UUCP> leo at philmds.UUCP (Leo de Wit) writes:
|sed '/^Reply-To:/s/()/('$REALNAME')/g' your_file

Sorry, I was too fast. This fails if $REALNAME contains spaces. Better
do it like this (assuming you're using a Bourne shell):

sed "/^Reply-To:/s/()/($REALNAME)/g" your_file

    Leo.



More information about the Comp.unix.questions mailing list