Wednesday, December 22, 2010

egrep to filter out lines in a text file NOT cointaining certain strings

this worked for me:

egrep '^str2|str1' file.txt

No comments:

Post a Comment