Last active
January 19, 2017 23:06
-
-
Save gongbaochicken/5026a9b67f5f108fec80a2b8858391a2 to your computer and use it in GitHub Desktop.
grep commands
This file contains hidden or 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
#I use grep almost every day. Such a powerful tool should be used in a very skillfull way. | |
#I want to open this gist for notetaking when I meet new commands. | |
#search in a folder in recursive way | |
grep -r "task" ../src | |
#ignore the case | |
grep -r -i "TaSk" ../src | |
#search for a whole word | |
grep -w 'hello' * | |
#work with regular expression | |
grep -r "@param .* - " ./ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment