Last active
September 26, 2016 18:03
-
-
Save fromdev/ab99368e74a700f2ef64da75e7d4ed89 to your computer and use it in GitHub Desktop.
Common Grep Commands Cheatsheet Based On Tutorial At http://bit.ly/2cUIBoZ
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
##Search "blah" in file FROMDEV.txt | |
grep “blah” FROMDEV.txt |
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
##Use -i option - will match "blah", "Blah" "BLAH" and more variations | |
grep -i “blah” FROMDEV.txt |
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
git diff origin/master..HEAD |
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
git log origin/master..HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment