Skip to content

Instantly share code, notes, and snippets.

@tomfbush
Last active January 2, 2022 13:34
Show Gist options
  • Save tomfbush/285f2db050fb82a2ff85c867ffb9b775 to your computer and use it in GitHub Desktop.
Save tomfbush/285f2db050fb82a2ff85c867ffb9b775 to your computer and use it in GitHub Desktop.
Search a path for a pattern in text files
# via https://stackoverflow.com/a/16957078/4421532
grep -rnw '/path/to/somewhere/' -e 'pattern'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment