[tt]
I have a requirement to increment a number prefixed with variable leading zeros and print the output.
Input:
0012
000005
000099
0000100
Desired output:
0013
000006
000100
0000101
I'm fine if the output is required to be say 5 digits in length i.e using printf "%05\n" - the variable length per line is creating issues.
Thanks
[/tt]
I have a requirement to increment a number prefixed with variable leading zeros and print the output.
Input:
0012
000005
000099
0000100
Desired output:
0013
000006
000100
0000101
I'm fine if the output is required to be say 5 digits in length i.e using printf "%05\n" - the variable length per line is creating issues.
Thanks
[/tt]