Created
November 29, 2017 20:32
-
-
Save arcticmouse/53b689ed651cc666ee10329bb9d0d85d to your computer and use it in GitHub Desktop.
grep to find a string
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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
grep OPTIONS PATTERN INPUT FILE_NAMES
-rnw (recursive / line number / whole word)
-e uses PATTERN as PATTERN