/ Published in: Bash

"-b" and "-a" tells grep to show you 10 lines before and 10 lines after
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
cat some_log_file | grep -b 10 -a 10 "something to search for"
Comments
