Skip to content

Instantly share code, notes, and snippets.

@1-800-jono
Created November 19, 2018 15:02
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 1-800-jono/655777c938c50ab6447912e0020115a0 to your computer and use it in GitHub Desktop.
Save 1-800-jono/655777c938c50ab6447912e0020115a0 to your computer and use it in GitHub Desktop.
Create a list of files that contain a specific string.
grep -rl "string" "/path/to/files" | xargs basename > list-of-files.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment