Created
February 6, 2019 08:30
-
-
Save boywijnmaalen/ac66022f7ba7e46968c6b76a916bbc8b 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
# cd into the right directory | |
$ find . -name \*.gz -print0 | xargs -0 zgrep -B 35 -A 35 "Search for string" | |
# -A show number of lines after an occurence | |
# -B show number of lines before an occurence |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment