I have a .txt file with 7 columns and thousands of rows, as follows:
20140101 2240 140213 -5.543 -34.973 32.4 200020140101 2250 118094 -4.475 -35.372 28.2 200020140101 1930 196279 -6.136 -33.958 24.2 300020140101 0000 178273 -6.082 -34.284 25.8 400020140101 1600 238772 -6.073 -33.188 28.4 600020140102 2340 86399 -7.214 -35.951 26.0 15000
I need to open the other files according to the strings in column 1, 2 and 7. That is, the files would have the following structure:
precip_CZ_$column7_$column1_$column2.dat
For example, this is the file name:
precip_CZ_02000_20140101_2240.datprecip_CZ_02000_20140101_2250.datprecip_CZ_03000_20140101_1930.datprecip_CZ_04000_20140101_0000.datprecip_CZ_06000_20140101_1600.datprecip_CZ_15000_20140102_2340.dat
Best Answer