0
I'm using tail -f
or less +F
to observe a changing log-file. I know from a certain point the lines I'm looking for are going to appear.
So all that garbage before that point I don't require and would like to strip it off somehow.
Is there a way to accomplish that? Mustn't be tail
or less
, I'm not limited to that.
Suppose the input were
seq 100
, and it was known that only lines greater than 50 had the needed lines. Let's say the needed lines are 61 and 63... is the goal to print from 61 to 100 (40 lines) or just 61 and 63, (2 lines)? – agc – 2018-02-27T06:54:33.053I wish it was so clear. I see the program and the logs parallel and as a certain point in the program is reached I know the line I expect will appear in the next 3-5 seconds. Everything written in the log before that point is not relevant and I'd like to strip it off. – Qohelet – 2018-02-27T09:44:43.397