I am a root in this forum and I start to learn how to write a macro from yesterday. But now I am really confused about writing a macro to do a task, I have a huge amount files with the following format:
I want to split them into separate files for each year, I tried to write some macros but they all failed to work, can anyone give me an inspiration? Thanks very much.
Code: Select all
254 0 14 AUG 1998
1 99999 91348 6.97N158.22E 46 2301
2 100 100 850 76 7 3
3 PTPN 32767 kt
9 1008 46 292 244 90 4
...................................
254 12 14 OCT 1998
1 99999 91348 6.97N158.22E 46 1101
2 100 100 50 77 7 3
3 PTPN 32767 kt
9 1009 46 250 236 150 4
...................................
254 12 14 OCT 1999
1 99999 91348 6.97N158.22E 46 1101
2 100 100 50 77 7 3
3 PTPN 32767 kt
9 1009 46 250 236 150 4
...................................