title: batch recursive move files of extension to folder named with that extension
body: <p>I have files of type mp3 and flac. Lets say my basic directory structure is </p>
  
  <pre><code>/music/artist/album
  </code></pre>
  
  <p>I have (already) made</p>
  
  <pre><code>/music/artist/album/flac/
  /music/artist/album/mp3/
  </code></pre>
  
  <p>with a recursive batch operation.</p>
  
  <p>I want to loop through all of <code>/music/</code> and do the following:</p>
  
  <ol>
  <li>If <code>/music/artist/album/</code>  has mp3s, move them to <code>/music/artist/album/mp3/</code>.</li>
  <li>If <code>/music/artist/album/</code> has flacs, move them to <code>/music/artist/album/flac/</code>.</li>
  </ol>
  
  <p>Some folders have mp3 and flac. Looking for either script file or command line solutions</p>