title: Getting all files from various folders and copying them with unique names
body: <p>Currently using this command to get all my "fanart" from my TV folder, and dump it into a single folder.</p>
  
  <pre><code>find /volume1/tv/ -type f \( -name '*fanart.jpg'* -o -path '*/fanart/*.jpg' -o -path '*/extrafanart/*.jpg' \) -exec cp {} /volume1/tv/_FANART \;
  </code></pre>
  
  <p>Here's the issue: a lot of these files have the same name, and can't be dumped into the same folder. Example:</p>
  
  <ul>
  <li>Folder A
  <ul>
  <li>fanart.jpg</li>
  </ul></li>
  <li>Folder B
  <ul>
  <li>fanart.jpg</li>
  </ul></li>
  </ul>
  
  <p>Is there a way to copy these files from their respective folders and give them a unique name in the destination folder? Name needn't be anything descriptive, random is just fine.</p>
  
  <p>Thanks!</p>