Hello!
I've used the command tail together with grep, and I don't quite understand why it works the way it does.
I'm using the command
Code:
tail /var/log/messages
and it shows the last 10 lines -> OK
I'm using the command
Code:
tail -f /var/log/messages
and it shows the last 10 lines and will update -> OK
I'm using
Code:
tail /var/log/messages | grep -v xxx | grep -v yyy
and it shows the remainder of the last 10 lines which don't contain xxx or yyy
I'm using
Code:
tail -f /var/log/messages | grep -v xxx | grep -v yyy
and it doesn't show the remainder of the last 10 lines...
I've checked, the last lines haven't changed and there are lines which will be shown if I leave off the -f.
Why don't they show up with the -f?