lets explain it easy by showing the initial file and desired file:
I've a file such this that contains:
initial_file:
31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1
TypeID GroupID EventID BulletinID CodeID Station Component Phase Quality Day Month Year Hour Minute Second Residual Polarity Hypo Weight Duration Amplitude Type Amplitude Period Md Ml Mb Ms Mw Distance Azimuth
1 0 2.01112E+13 1325375174 52 TVAN Z P I 31 12 2011 23 46 13.8469 -0.27 0 1 0 0 C 25253.24 0.18 0 3.4 0 0 0 30.01 235.7882
1 0 2.01112E+13 1325375174 290 VMUR Z P I 31 12 2011 23 46 13.9996 -1.99 0 1 0 0 C 3182.026 0.13 0 3.2 0 0 0 36.28 343.7596
1 0 2.01112E+13 1325375178 331 CLDR Z P I 31 12 2011 23 46 17.9258 -0.27 0 1
desired_file:
31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1
1 0 2.01112E+13 1325375174 52 TVAN Z P I 31 12 2011 23 46 13.8469 -0.27 0 1 0 0 C 25253.24 0.18 0 3.4 0 0 0 30.01 235.7882
1 0 2.01112E+13 1325375174 290 VMUR Z P I 31 12 2011 23 46 13.9996 -1.99 0 1 0 0 C 3182.026 0.13 0 3.2 0 0 0 36.28 343.7596
1 0 2.01112E+13 1325375178 331 CLDR Z P I 31 12 2011 23 46 17.9258 -0.27 0 1 0