3 ms·
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.
by gitaarik 12y ago
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.
- mattikus 12y agoWhile 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.
- nilkn 12y agoI'd wager that 90% of the time that I'm using 'tail -F' I'm also piping it to grep.
- jfroma 12y agoThis. I use: tail -f /var/log/x.log | grep foo -A 20 -B 20 Most of the time.