I'm using a processing tool that reads a file and outputs a modified version of it.
I have been working with it successfully like this:
tail -15f log_file.log | log_colorizer
But I would also like to know how to pipe its live-updates to less
:
tail -15f log_file.log | log_colorizer | less -R +F
although it's giving me a hard time, as it doesn't seem to be working. What am I doing wrong? Doing a simple less +F log_file.log
seems to work fine.
Thanks
less
in a way it wasn't originally designed to do. It's like using a hammer to drive a screw. – Andrew Henle May 08 '17 at 13:21less
is unable to seek to a previous location to reread data when reading from a pipe, and it can't skip over data to a known location to access contents there. It can't search the entire contents of a pipe because the entire contents aren't available. There are numerous features that are impossible to make available for pipes. – Andrew Henle Jul 31 '17 at 22:39