Y
Hacker News
new
|
ask
|
show
|
jobs
by
oftenwrong
1286 days ago
grep regex /var/log/logfile -05 #To view the 5 lines before *and* after the match
This appears to work with GNU grep, at least, but YSK that the POSIX grep option for this is `-C`.