I have a large text file abc.txt with the following format:
BALT
-6.110
130.600
4.06874414
-0.03254425
BALT
-6.620
154.460
3.92286595
-0.17842244
BARM
32.740
140.680
3.94326190
-0.15802649
I need this file to convert an output file xyz.txt in the format like:
BALT 1
-6.110 130.600
4.06874414
-0.03254425
BALT 2
-6.620 154.460
3.92286595
-0.17842244
BARM 3
32.740 140.680
3.94326190
-0.15802649
The numbers 1, 2, 3... after four character data name will increase as I go for more data.