So you have a var you want to remove leading 0’s on.. well do the follwing
mzupan@mzupan-desktop:~$ var=00014 mzupan@mzupan-desktop:~$ let var=”10#$var” mzupan@mzupan-desktop:~$ echo $var 14 mzupan@mzupan-desktop:~$
mzupan@mzupan-desktop:~$ var=00014
mzupan@mzupan-desktop:~$ let var=”10#$var”
mzupan@mzupan-desktop:~$ echo $var
14
mzupan@mzupan-desktop:~$