News for hackers. Stuff that matters.
Re:Stop using tail -f (mostly) by gitaarik on Monday March 30, 2015 @12:45PM (#9290729)
It's a nice feature of less, but less is a pager, so you can't pipe the result to `grep` or `sed` or `awk` or something.
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.
Re:Stop using tail -f (mostly) by jfroma on Monday March 30, 2015 @01:20PM (#9290979)
This. I use:

tail -f /var/log/x.log | grep foo -A 20 -B 20

Most of the time.

Re:Stop using tail -f (mostly) by gitaarik on Monday March 30, 2015 @01:24PM (#9291005)
You know you can also do -C 40 for 40 lines of context instead of -A 20 -B 20
Re:Stop using tail -f (mostly) by nkouevda on Monday March 30, 2015 @03:35PM (#9292000)
Note that -C is in each direction, not total; -C20 is equivalent to -A20 -B20.
Re:Stop using tail -f (mostly) by jfroma on Monday March 30, 2015 @04:56PM (#9292554)
Thank you,

This is the reason I always share how I do it in hn! LOL

Re:Stop using tail -f (mostly) by mattikus on Monday March 30, 2015 @02:34PM (#9291555)
While you may not be able to do transforms on the output via `sed` or `awk`, you can get a grep-like filtering by using the `&` character with `less` open.