How do I find out the files in the current directory which do not contain the word foo (using grep)?
foo
grep
If your grep has the -L (or --files-without-match) option:
-L
--files-without-match
$ grep -L "foo" *
1.4m articles
1.4m replys
5 comments
57.0k users