Created
August 27, 2015 10:11
-
-
Save g-ilham/df1a62638f9eb7ada1f7 to your computer and use it in GitHub Desktop.
grep in logs on VPS
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
A - after | |
B - before | |
C - same number of lines before and after | |
git blame Gemfile | grep -B10 -A10 BlaBla | |
git blame Gemfile | grep -C10 BlaBla | |
cat mylog | grep -A10 BlaBla |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment