Chris Norman wrote: > 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? Try two of them? ie: \n\n The first newline deletes the newline character at the end of the line being deleted. The second newline should delete the blank line directly below that: line1: line2: line3: What the computer sees, in actuality, is: ...in an unbroken stream. The newline is an actual character and needs to be deleted to erase the line. grep does this automatically, but sed does not. sed only erases the characters you specify. HTH, Michael