S
seansan
Hi,
I have been set out to investigate howto split a large file in PERL.
My question is as follows.
I have a large file that is built up off data chunks of record sets.
Every new record set start with /^010/ and continues some lines (it
varies), until wel find the next '010' recordset. Finding these recs
doesnt seem so difficult, but other subject that I am not familiar
with fogg my mind.
I was thinking of opening 2 output files. I wanted to loop through the
file and according on 3-characters on the 1235th column (or
text-place) of the 010 line I have to print to either file A or file
B. How do I accomplish this?
- How do I read the 1235th 3 character identifier? and - How do I
switch between OUTPUT files? (remember I have to write several lines
to file A or B, until the next 010 line is encountered) and last, -
What considerations should I make for working with 3-4 GB files?
Any help, or examples will be appreciated
Sean Heukels
I have been set out to investigate howto split a large file in PERL.
My question is as follows.
I have a large file that is built up off data chunks of record sets.
Every new record set start with /^010/ and continues some lines (it
varies), until wel find the next '010' recordset. Finding these recs
doesnt seem so difficult, but other subject that I am not familiar
with fogg my mind.
I was thinking of opening 2 output files. I wanted to loop through the
file and according on 3-characters on the 1235th column (or
text-place) of the 010 line I have to print to either file A or file
B. How do I accomplish this?
- How do I read the 1235th 3 character identifier? and - How do I
switch between OUTPUT files? (remember I have to write several lines
to file A or B, until the next 010 line is encountered) and last, -
What considerations should I make for working with 3-4 GB files?
Any help, or examples will be appreciated
Sean Heukels