Hi,
I am simulating wireless networks and the simulator keeps putting runtime data to the output and eventually to my results file.
to give you an idea
....
1 8724593564 2 153 465
1 8725120550 14 900 259
Node 0 sends packet to 1
1 8725375953 22 654 339
1 8725533894 24 481 438
1 8725911788 25 508 488
1 8726442360 16 326 297
Node 0 sends packet to 3
1 8727100680 7 611 87
1 8727271901 6 577 125
1 8727967413 12 223 189
1 8728656825 3 278 262
1 8728757940 17 394 304
1 8728987830 1 155 192
1 8729210880 26 541 520
1 8729924822 11 314 191
1 8730971290 5 788 119
1 8732720640 29 496 172
1 8733388914 20 305 378
Node 0 sends packet to 5
1 8733771145 21 413 392
1 8733815812 23 517 368
1 8735005533 28 423 441
1 8735786288 19 658 300
1 8735894851 2 153 466
1 8736065396 27 570 558
......
How can I remove the unnecessary data so that my file looks like
Node 0 sends packet to 1
Node 0 sends packet to 3
Node 0 sends packet to 5
the unnecessary lines always start with '1 ' and always have 5 numbers spaced by ' '
I do not know scripting languages and would be grateful if you could write me a small code snippet for it.
Thanks*million in advance.