printf and sprintf are your friends. Try: printf "%010d", 15;
HTH
In reply to Re: number formatting by VSarkiss in thread number formatting by costas