How do I find files that do not contain a given string pattern? September 9, 2022 by Tarik If your grep has the -L (or --files-without-match) option: $ grep -L "foo" *