title: Batch copy files to new directories that match the file name
body: <p>I have 250.000 files all in one directory.<br>
  The files are all in the format  </p>
  
  <pre><code>1a.jpg  
  1b.jpg  
  1c.jpg  
  </code></pre>
  
  <p>... and goes up to      1f.jpg then the number is incremented by one  </p>
  
  <pre><code>2a.jpg  
  2a.jpg  
  2c.jpg  
  </code></pre>
  
  <p>... and so on.</p>
  
  <p>Now I want to copy all files that start with 1 to a new directory called 1,<br>
  all files that start with 2 to directory 2 and so on.</p>
  
  <p>Can anyone help on this?</p>