Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 499 Bytes

grep-for-files-without-a-match.md

File metadata and controls

14 lines (10 loc) · 499 Bytes

Grep For Files Without A Match

The grep command is generally used to find files whose contents match a pattern. With the -L (--files-without-match) flag, grep can be used to find files that don't match the given pattern.

For instance, to find files in the current directory that don't have foobar anywhere in their content, run:

$ grep -L "foobar" ./*

source