I have a logfile that looks like this:
I need a way to look at each line, looking for "End processing" and then return the 5 digit number after each of these.
How can I do this?
Code: Select all
12:03:24 20039 DIF has 866 recs, ACK reports 8529
12:03:24 20039 GetDIF was unsuccessful
12:03:24 20039 End processing 20039
12:03:26 20040 DIF has 1443 recs, ACK reports 5966
12:03:27 20040 GetDIF was unsuccessful
12:03:27 20040 End processing 20040
How can I do this?