How do I find files that do not contain a given string pattern?

If your grep has the -L (or --files-without-match) option:

$ grep -L "foo" *

Leave a Comment