Hi, I just deleted the e-mail that had the sed -i command in it, so I can't reply to it directly. I tried it, but it only deletes the line, and not the following blank line. \n didsn't work. How do I get rid of the blank line too? I use 's/text$//'. Cheers. -- Chris Norman. <!-- chris.norman4 at ntlworld.com -->