Hi,
i need help on adding additional data from file 1 to file 2 as follows:-
_file1_
No 250-305 Id 1
No 144-146 Id 1
No 189-190 Id 2
No 1904-1909 Id 2
No 1962-1968 Id 2
No 221-222 Id 7
No 248-251 Id 8
No 257-258 Id 8
_file2_
ID 1
START S216
DONE D125
@@
the output should look like this:-
ID 1
START S216
DONE D125
No 250-305
No 144-146
@@
ID 2
START S325
DONE D340
No 189-190
No 1904-1909
No 1962-1968
@@
and so on..until ID 8. Need help on how to do this using awk. Thanks..
i need help on adding additional data from file 1 to file 2 as follows:-
_file1_
No 250-305 Id 1
No 144-146 Id 1
No 189-190 Id 2
No 1904-1909 Id 2
No 1962-1968 Id 2
No 221-222 Id 7
No 248-251 Id 8
No 257-258 Id 8
_file2_
ID 1
START S216
DONE D125
@@
the output should look like this:-
ID 1
START S216
DONE D125
No 250-305
No 144-146
@@
ID 2
START S325
DONE D340
No 189-190
No 1904-1909
No 1962-1968
@@
and so on..until ID 8. Need help on how to do this using awk. Thanks..