Skip to content

Instantly share code, notes, and snippets.

@arcticmouse
Created November 29, 2017 20:32
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 arcticmouse/53b689ed651cc666ee10329bb9d0d85d to your computer and use it in GitHub Desktop.
Save arcticmouse/53b689ed651cc666ee10329bb9d0d85d to your computer and use it in GitHub Desktop.
grep to find a string
grep -rnw '/path/to/somewhere/' -e 'pattern'
@arcticmouse
Copy link
Author

arcticmouse commented Dec 4, 2017

grep OPTIONS PATTERN INPUT FILE_NAMES
-rnw (recursive / line number / whole word)
-e uses PATTERN as PATTERN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment