Hi!
I have the following file:
Well Data Export
Project : CA_ATHAB_SURMONT_NAM
Cartographic System : UTM 12N - NAD 1927 Canada
Depth Mode : MD
Depth Unit : International meters
Distance Unit : meters
Format File : /soft/lmk/2003/dat/wlx/VDP_devi.wlx
Date : Mon Mar 15 15:21:13 2004
1 PAD101-NP01-P01-INF 0.000 501492.530
6227862.940 0.000
0.500 501492.513 6227862.919 0.499
1.000 501492.496 6227862.897 0.998
1.500 501492.479 6227862.876 1.497
2.000 501492.463 6227862.854 1.996
2.500 501492.446 6227862.833 2.495
....
1 TOTO-NP01-P01-INF 0.000 501492.530 6227862.940 0.000
0.500 501492.513 6227862.919 0.499
...
The goal is to split this file based on the name is column two i.e "PAD201-NP01-P01-INF".dat then for each file I would like to write the header
" Well Data Export
Project : CA_ATHAB_SURMONT_NAM
Cartographic System : UTM 12N - NAD 1927 Canada
Depth Mode : MD
Depth Unit : International meters
Distance Unit : meters
Format File : /soft/lmk/2003/dat/wlx/VDP_devi.wlx
Date : Mon Mar 15 15:21:13 2004
"
+ all the lines until the next 1 XXXXXX item
Thanks!
I have the following file:
Well Data Export
Project : CA_ATHAB_SURMONT_NAM
Cartographic System : UTM 12N - NAD 1927 Canada
Depth Mode : MD
Depth Unit : International meters
Distance Unit : meters
Format File : /soft/lmk/2003/dat/wlx/VDP_devi.wlx
Date : Mon Mar 15 15:21:13 2004
1 PAD101-NP01-P01-INF 0.000 501492.530
6227862.940 0.000
0.500 501492.513 6227862.919 0.499
1.000 501492.496 6227862.897 0.998
1.500 501492.479 6227862.876 1.497
2.000 501492.463 6227862.854 1.996
2.500 501492.446 6227862.833 2.495
....
1 TOTO-NP01-P01-INF 0.000 501492.530 6227862.940 0.000
0.500 501492.513 6227862.919 0.499
...
The goal is to split this file based on the name is column two i.e "PAD201-NP01-P01-INF".dat then for each file I would like to write the header
" Well Data Export
Project : CA_ATHAB_SURMONT_NAM
Cartographic System : UTM 12N - NAD 1927 Canada
Depth Mode : MD
Depth Unit : International meters
Distance Unit : meters
Format File : /soft/lmk/2003/dat/wlx/VDP_devi.wlx
Date : Mon Mar 15 15:21:13 2004
"
+ all the lines until the next 1 XXXXXX item
Thanks!