Hi,
I have a file which consists of two columns, for example
1 4.00
2 5.25
6 8.12
What I want to do is fill in the gaps between integers in column 1 and insert 0.00 in column 2 for each "missing integer" so the output I want is:
1 4.00
2 5.25
3 0.00
4 0.00
5 0.00
6 8.12
I've tried a variety of while and if loops and can't get what i want.
Any help greatly appreciated.
Cheers,
Kfed69
I have a file which consists of two columns, for example
1 4.00
2 5.25
6 8.12
What I want to do is fill in the gaps between integers in column 1 and insert 0.00 in column 2 for each "missing integer" so the output I want is:
1 4.00
2 5.25
3 0.00
4 0.00
5 0.00
6 8.12
I've tried a variety of while and if loops and can't get what i want.
Any help greatly appreciated.
Cheers,
Kfed69