How do I find out the files in the current directory which do not contain the word foo (using grep)?
foo
grep
The following command could help you to filter the lines which include the substring "foo".
cat file | grep -v "foo"