A challenge !
I have a continuous stream of data split like this:
BILLSTART
ACCOUNTNAME nnnnn
PRODUCT nnn
Then more stream like this
122222222 Call1,,,,,0122345455,call5 etc etc
Then
BILLEND
I need to be able to cut one account out from the stream to create one file ! How can I do this ? I have tried using split but that only cuts the file down to contain the amount of lines specified in split -n
How can I extract one account into a file baring in mind that each accounts bill starts
BILLSTART
and finishes
BILLEND
I want to be able to specify the account number to extract but the ACCOUNT_NO field is located on the 3rd line !
Anyone know what I am trying to get at ?
I have a continuous stream of data split like this:
BILLSTART
ACCOUNTNAME nnnnn
PRODUCT nnn
Then more stream like this
122222222 Call1,,,,,0122345455,call5 etc etc
Then
BILLEND
I need to be able to cut one account out from the stream to create one file ! How can I do this ? I have tried using split but that only cuts the file down to contain the amount of lines specified in split -n
How can I extract one account into a file baring in mind that each accounts bill starts
BILLSTART
and finishes
BILLEND
I want to be able to specify the account number to extract but the ACCOUNT_NO field is located on the 3rd line !
Anyone know what I am trying to get at ?