title: Adding a zero to single digit variable
body: <p>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 <code>02.1.2011</code>, <code>02.2.2011</code> etc,etc.</p>
  
  <pre><code>i=0
  for i in {01..31}
  do
      if $i &gt; 10
          then
              mkdir $path/02.0$i.2011
          else    
              mkdir $path/02.$i.2011
      fi
  done
  </code></pre>