I have a file with initials and numbers in it e.g.
jl0009
mj0056
I need to increment the numbers to get
jl0010
mj0057
I have been splitting the variable into two - initials and numbers. If I print the number variable it prints the leading zeros. As soon as I add 1 to it, the leading zeros are gone and I get
jl10
mj57
How do I retain the leading zeros?
Many thanks
Apologies if this is very simple but I am very new to awk.