Skip to content

Instantly share code, notes, and snippets.

@codfish
Created May 24, 2016 17:57
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 codfish/7aa10ee515b15de64e2677c0c1d3785e to your computer and use it in GitHub Desktop.
Save codfish/7aa10ee515b15de64e2677c0c1d3785e to your computer and use it in GitHub Desktop.
Get an alphabetical list of files that a specific string is found within your repo
git grep '<string to search for>' | awk '{print $1}' | sed 's/:$//' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment