Skip to content

Instantly share code, notes, and snippets.

@kimwalisch
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save kimwalisch/9483710 to your computer and use it in GitHub Desktop.

Select an option

Save kimwalisch/9483710 to your computer and use it in GitHub Desktop.
Find all files that contain a user specified keyword (UNix)
# Find all files KEYWORD
$ fgrep -R --files-with-matches KEYWORD .
# Find all files with FILENAME and KEYWORD
$ find . -name FILENAME -exec fgrep --files-with-matches KEYWORD {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment