Is there a way to force preceeding zero's into the echo statement for integers? See example:
$ MYVAR=0001
$ echo $MYVAR
0001
$ ((MYVAR=MYVAR+1))
$ echo $MYVAR
2
I know I could do his with a shell by comparing the length of the variable and adding zero's, but thought there was an option that could be set to do this automatically.