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" *
2.1m questions
2.1m answers
60 comments
57.0k users