Re:Stop using tail -f (mostly)
by nilkn on Monday March 30, 2015 @12:47PM
(#9290745)
I'd wager that 90% of the time that I'm using 'tail -F' I'm also piping it to grep.
[ Parent
| on HN ]
This. I use:
tail -f /var/log/x.log | grep foo -A 20 -B 20
Most of the time.
You know you can also do -C 40 for 40 lines of context instead of -A 20 -B 20
Note that -C is in each direction, not total; -C20 is equivalent to -A20 -B20.