title: Move files to directories based on first part of filename?
body: <p>I have several thousand ebooks that need to be organized on a headless linux server running bash through SSH. All of the ebooks are thankfully named with one of 2 conventions.</p>
  
  <ul>
  <li>AuthorFirstName AuthorLastName - Book Title.pdf </li>
  <li>AuthorFirstName AuthorLastName - Book Series #inSeries - Book
  Title.pdf</li>
  </ul>
  
  <p>What I would like to do is to move all of the books into an organized system such as:</p>
  
  <pre><code>`DestinationDirectory/FirstLetterOfAuthorFirstName/Author Full Name/pdf's`
  </code></pre>
  
  <p>e.g. the following books</p>
  
  <pre><code>Andrew Weiner - Changes.pdf 
  Allan Cole - Timura Trilogy 01 - When the Gods Slept.pdf
  </code></pre>
  
  <p>should be placed in the following folders</p>
  
  <pre><code>/books/A/Allan Cole/Allan Cole - Timura Trilogy 01 - When the Gods Slept.pdf
  /books/A/Andrew Weiner/Andrew Weiner - Changes.pdf
  </code></pre>
  
  <p>I need help with how to put this all into a bash script that will grab the filenames of all the PDF files in the current directory, and then move the files to the proper directory, creating the directory if it doesn't already exist.</p>