-
-
Save gurkanakdeniz/1189ed0b1b3449e22b730744871202cd to your computer and use it in GitHub Desktop.
grep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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