Last active
December 28, 2015 19:49
-
-
Save ludder/7552890 to your computer and use it in GitHub Desktop.
Simple grep command looking for string in files in (sub)directories
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
# -r -> Include subdirectories | |
# -n -> Print line number | |
# -i -> Ignore case | |
# . -> From current directory | |
grep -rn "searchString" . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment