[Editorial insertion: Possible duplicate of the same poster\'s earlier question?]
Hi, I need to extract from the file:
first second
So you just don't want the line containing "first"? -v inverts the grep results.
-v
$ echo -e "first\nsecond\nthird\n" | grep -v first second third