I have a text file which contains data like this :-
abc xyz
....variable data containing letters and numbers
spread over multiple lines......................
................................................
................................................
............................................... |
abc xyz
....variable data containing letters and numbers
spread over multiple lines......................
................................................
................................................
............................................... |
.
.
.
So, 'abc xyz' and | repeat more than once in the file and I need to extract the data that follows 'abc xyz' through to |.
I want to read the data file one 'section' (i.e. between the first 'abc xyz' and | set) at a time and send the data relative to that 'section' to a separate file.
Then read the second 'section' of data and send those contents to a different file, etc, etc.
By the way, I can change the | (my attempt at defining a record separator) to something else, I don't know, say, 'endoffile'.
I'm afraid that this task is beyond my awk skills....any help is greatly appreciated. Thanks!
abc xyz
....variable data containing letters and numbers
spread over multiple lines......................
................................................
................................................
............................................... |
abc xyz
....variable data containing letters and numbers
spread over multiple lines......................
................................................
................................................
............................................... |
.
.
.
So, 'abc xyz' and | repeat more than once in the file and I need to extract the data that follows 'abc xyz' through to |.
I want to read the data file one 'section' (i.e. between the first 'abc xyz' and | set) at a time and send the data relative to that 'section' to a separate file.
Then read the second 'section' of data and send those contents to a different file, etc, etc.
By the way, I can change the | (my attempt at defining a record separator) to something else, I don't know, say, 'endoffile'.
I'm afraid that this task is beyond my awk skills....any help is greatly appreciated. Thanks!