@the pipe: i agree, i could be just like: sed '/foo/d' file.txt
I thought that the pipe was a faster way, timewise.
But what i meant is, instead of doing:
cat filename1.txt | grep -v foo > filename2.txt
followed by: sed '$!N; /^\(.*\)\n\1$/!P; D' file.txt
Get rid of lines (with certain content) in one step with:
sed '/foo/d' file.txt
(which is what i think the OP was actually trying to do in the beginning ..)
Last edited by muha; 04-10-2006 at 02:21 AM.