Hi all.
I have a fixed format log file with content as follows :
========
06/18/2003 12:00:00:008 blah blah
06/18/2003 12:00:02:010 blah blah
..
..
..
06/18/2003 12:00:00:016 blah blah
06/18/2003 12:00:03:020 submission 124304
..
..
06/18/2003 12:00:04:200 blah blah
06/18/2003 12:00:05:020 submission 124304
=============
Can you please help me with a script which searches for string "124304" in the file and extracts the 46th line before EACH occurance of the string in the file.
Thanks for your help in advance.
I have a fixed format log file with content as follows :
========
06/18/2003 12:00:00:008 blah blah
06/18/2003 12:00:02:010 blah blah
..
..
..
06/18/2003 12:00:00:016 blah blah
06/18/2003 12:00:03:020 submission 124304
..
..
06/18/2003 12:00:04:200 blah blah
06/18/2003 12:00:05:020 submission 124304
=============
Can you please help me with a script which searches for string "124304" in the file and extracts the 46th line before EACH occurance of the string in the file.
Thanks for your help in advance.