Last active
May 25, 2016 06:43
-
-
Save nareshganesan/dff858af45d2a3af859dd474841cd029 to your computer and use it in GitHub Desktop.
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
# Tailing a big file especially log file | |
tail -f filename | |
# search for content | |
grep 'pattern' | |
# search with OR condition | |
grep -E 'pattern1|pattern2' | |
# search with AND condition | |
grep -E 'pattern1.*pattern2' | |
# search with NOT condition | |
grep -v 'negation term' | |
# search with lines above and below the result line. | |
grep -C 25 'pattern' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment