The tail has the following parameters:
-f The -f option causes tail to not stop when end of file is reached, but rather to wait for additional data to be appended to the input. The -f option is ignored if the standard input is a pipe, but not if it is a FIFO.
I would like only grep for something in the tail output.
tail -f <FILE> | grep <SOMETHING>
The problem is that grep is only started once and executed. No other way out occurs. How can I make grep run correctly with -f ?
linux unix bash grep tail
Sten kin
source share