Hi folks,
I'd like to monitor a continously growing logfile.
Each new entry of the logfile consists of about 5 lines.
Problem is I need only 2 lines of the output of each new logifle entry (e.g.):
File: ...
Status: ...
I don't need the other lines.
If I do something like that:
tail -f logfile | grep Status
I only get 1 line.
Is there any way to also get the second line ?
Thanks in advance !
Regards
Thomas
I'd like to monitor a continously growing logfile.
Each new entry of the logfile consists of about 5 lines.
Problem is I need only 2 lines of the output of each new logifle entry (e.g.):
File: ...
Status: ...
I don't need the other lines.
If I do something like that:
tail -f logfile | grep Status
I only get 1 line.
Is there any way to also get the second line ?
Thanks in advance !
Regards
Thomas