in reply to number formatting

printf and sprintf are your friends. Try: printf "%010d", 15;

HTH