5 ms·
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 opt
by oftenwrong 4y 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`.