When watching a growing log file with e.g. "less -iS +F service.log" I want to limit the display to lines matching a certain pattern.
I tried something like
less +F service.log | grep <pattern> | less +F
which doesn't work. Also
cat < service.log | grep <pattern> | less +F
doesn't do what I want. It looks like the input is already closed and less doesn't show changes.
How can I limit the display to lines matching a certain pattern?
less '+&<pattern>^MF' service.log
where the^M
is obtained by typing ctrl-v and then enter – Mattie