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
I created this simple utility to perform this, Good Luck , hope this helps stack'ers!!
for i in {1..24} do charcount=`echo $i|wc -m` count=`expr $charcount - 1` if [ $count -lt 2 ]; then i="0`echo $i`" fi echo "$i" done