Trying to add a zero before the varaible if it\'s less than 10 and create said directory. I can\'t seem to get the zero to add correctly. Keeps resulting in making 02.1.20
02.1.20
Will this work for you?
zeroes="0000000" pad=$zeroes$i echo ${pad:(-2)}