Skip to content

Instantly share code, notes, and snippets.

@gurkanakdeniz
Created April 22, 2019 16:52
Show Gist options
  • Save gurkanakdeniz/1189ed0b1b3449e22b730744871202cd to your computer and use it in GitHub Desktop.
Save gurkanakdeniz/1189ed0b1b3449e22b730744871202cd to your computer and use it in GitHub Desktop.
grep
grep -rnw '/path/to/somewhere/' -e 'pattern'
-i stands for ignore case (optional in your case).
-r or -R is recursive,
-n is line number, and
-w stands for match the whole word.
-l (lower-case L) can be added to just give the file name of matching files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment