G
Guest
Hi all, here's the problem I have:
I have a text file that I believe was dumped from an old-school COBOL
bucketed file.
In each record is a chunk of data that I want to use, which will always
start with the same four letters, then a space, then it's the next 10
characters that I want. The trouble is, this useful string could be buried
anywhere within the record. My data looks something like this:
garbagegarbagegarbageABCD ##########garbagegarbage
garbageABCD ##########garbagegarbagegarbagegarbage
garbagegarbagegarbagegarbageABCD ##########garbage
Is there a way of extracting just the 10 characters after the ABCD that
always marks where it starts?
Thanks!
I have a text file that I believe was dumped from an old-school COBOL
bucketed file.
In each record is a chunk of data that I want to use, which will always
start with the same four letters, then a space, then it's the next 10
characters that I want. The trouble is, this useful string could be buried
anywhere within the record. My data looks something like this:
garbagegarbagegarbageABCD ##########garbagegarbage
garbageABCD ##########garbagegarbagegarbagegarbage
garbagegarbagegarbagegarbageABCD ##########garbage
Is there a way of extracting just the 10 characters after the ABCD that
always marks where it starts?
Thanks!