/ Published in: Bash
"-b" and "-a" tells grep to show you 10 lines before and 10 lines after
Expand |
Embed | Plain Text
cat some_log_file | grep -b 10 -a 10 "something to search for"
You need to login to post a comment.
"-b" and "-a" tells grep to show you 10 lines before and 10 lines after
cat some_log_file | grep -b 10 -a 10 "something to search for"
You need to login to post a comment.