dominicdiddy
Technical User
Hi All,
Any ideas on how to output several lines below or above (or both) when searching for a string in a ASCII file please?
Example below,
---
Thu Nov 24 07:45:36 2005 hdgej
hdgej: New journal file opened.
hdgej: /lbtest/db/file.test.out lgdmn: version 1, sequence 5111, volume 1.
----
So if having searched for string, say "version 1", then how could I output the entire record (ie the 4 lines) surrounded by blank lines...
Any help greatly appreciated!!!
Thanks in advance,
Dominic
Any ideas on how to output several lines below or above (or both) when searching for a string in a ASCII file please?
Example below,
---
Thu Nov 24 07:45:36 2005 hdgej
hdgej: New journal file opened.
hdgej: /lbtest/db/file.test.out lgdmn: version 1, sequence 5111, volume 1.
----
So if having searched for string, say "version 1", then how could I output the entire record (ie the 4 lines) surrounded by blank lines...
Any help greatly appreciated!!!
Thanks in advance,
Dominic