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.