-
-
Save erangaeb/4883bda201b342aa4fcb to your computer and use it in GitHub Desktop.
Linux grep
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
| # grep prints line below and above(10 lines below and above) | |
| git log | grep -C 10 android | |
| # recurisve grep on current folder | |
| grep -R "createEmployee" . | |
| # recursieve grep on .java files | |
| grep -R "createemployee" *.java | |
| # recursive grep on src/ directory | |
| grep -R "createemployee" src/ | |
| # recursive grep on directories starts with 'sr' | |
| grep -R "createEmployee" sr* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment