I have a file in the following format :
19-08-02 Name appel ok hope local merge (mk)
juin nov sept oct
00:00:t1 T1 299 0 24 8 3 64
F2 119 0 11 8 3 62
I1 25 0 2 9 4 64
F3 105 0 10 7 3 61
Regulated F2 0 0 0
FR T1 104 0 10 7 3 61
00:00:t2 T1 649 0 24 8 3 64
F2 119 0 11 8 3 62
I1 225 0 2 9 4 64
F3 165 0 10 7 3 61
Regulated F2 5 0 0
FR T1 102 0 10 7 3 61
20-08-02 Name appel ok hope local merge (mk)
juin nov sept oct
00:00:t5 T1 800 0 24 8 3 64
F2 111 0 11 8 3 62
I1 250 0 2 9 4 64
F3 105 0 10 7 3 61
Regulated F2 0 0 0
FR T1 100 0 10 7 3 61
and I want to extract some data and write them in an other file CSV file in the following format :
T1 F2 I1 F3 Regulated F2 FR T1
00:00:t1 299 119 25 105 0 104
00:00:t2 649 119 225 165 5 102
00:00:t5 800 111 250 105 0 100
.......
I just need to extract the values in the third field appel every 00:00:XX
I've tried to use awk but I didn't succeed to have the right script especially the 5th is composed of two words : Regulated F2.
I don't know how to extract it as a single word .
Any help please !
cut -c 11-36(assuming 2nd field is 25 characters, didn't count it) to extract the data. Likewise for the other fieldscut -cit extracts fields eventhough there are white spaces but the problem that it's displayed vertically .. I want it to be written horizentally as the example above.