Skip to content

Instantly share code, notes, and snippets.

@arsham
Last active April 2, 2018 22:57
Show Gist options
  • Save arsham/e57b12a8b34f664e93b0327cce562a38 to your computer and use it in GitHub Desktop.
Save arsham/e57b12a8b34f664e93b0327cce562a38 to your computer and use it in GitHub Desktop.
Find files not containing a string with grep. #bash #zsh #shell
grep -L <TEXT> --exclude "<EXCLUDE PATTERN>" */**/*
@arsham
Copy link
Author

arsham commented Apr 1, 2018

Example:

grep -L "Arsham Shirvani" --exclude "vendor*"  */**/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment