Archive for January 6th, 2009

How can i search for files which contain string A but not string B ?

Tuesday, January 6th, 2009

Pipe the output of grep through grep -v. For example:

grep 'A' file | grep -v 'B'