Skip to content

Instantly share code, notes, and snippets.

@jonnott
Last active December 30, 2015 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnott/7821477 to your computer and use it in GitHub Desktop.
Save jonnott/7821477 to your computer and use it in GitHub Desktop.
# with symlink following
grep -r -n "match" . --include "*.php"
# no symlink following
find . -name "*.php" -exec grep -n -H "match" {} \;
# files without match
find . -name "*.php" -exec grep -L "match" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment