title: Moving Files to Different Folders Based on the Part of Their File Name
body: <p>I am looking for a script that will move PDF files to a different folder according to a part of the file name. Here are a few sample file names: </p>
  
  <pre><code>Additional documents_Joe Root.pdf
  Relevant past items_Joe Root.pdf
  Important file list_Joe Root.pdf
  Highly classified docs_David Williams.pdf
  searched useful items_David Williams.pdf    
  </code></pre>
  
  <p>I need the files with <code>_Joe Root</code> to be moved to folder called <code>"Joe Root"</code><br>
  and files with <code>"_David Williams"</code> to be moved to a folder call <code>"David Williams"</code>.  </p>