Yanndewael
Programmer
Hello,
I'd like to write a script to read a flat file and to split it into 2 different ones. Here is the structure of the original file:
0xxxxxxxxxxx
1xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
0xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
Where x can be a number or a letter and where the number of line beginning with "1" is variable.
I want have 2 files, each beginning with the "0" line and finishing with the "9" line -->
File 1:
0xxxxxxxxxxx
1xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
File 2
0xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
Any idea??
Thank you in advance!
Yann
I'd like to write a script to read a flat file and to split it into 2 different ones. Here is the structure of the original file:
0xxxxxxxxxxx
1xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
0xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
Where x can be a number or a letter and where the number of line beginning with "1" is variable.
I want have 2 files, each beginning with the "0" line and finishing with the "9" line -->
File 1:
0xxxxxxxxxxx
1xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
File 2
0xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
Any idea??
Thank you in advance!
Yann