title: Copy all files with a certain extension from all subdirectories
body: <p>Under unix, I want to copy all files with a certain extension (all excel files) from all subdirectories to another directory. I have the following command:</p>
  
  <pre><code>cp --parents `find -name \*.xls*` /target_directory/
  </code></pre>
  
  <p>The problems with this command are:</p>
  
  <ul>
  <li><p>It copies the directory structure as well, and I only want the files (so all files should end up in /target_directory/)</p></li>
  <li><p>It does not copy files with spaces in the filenames (which are quite a few)</p></li>
  </ul>
  
  <p>Any solutions for these problems?</p>