A powerful membership solution for WordPress

I was doing a little organizing of my home directory and needed a quick way to move all of my .pdf files into my Documents/PDF folder. It’s where I keep all PDFs for easy organization. Receipts, financial documents, e-books, etc. Here’s a quick way to find ALL of a file type (recursively of course) and move (or copy if you prefer) to another directory.

$ find /home/username/ -iname "*.pdf*" -exec mv {} /home/cklosowski/Documents/pdfs/ ;

Again you could also cp instead of mv if you prefer (would end up with duplicates however) by changing it to read:

$ find /home/username/ -iname "*.pdf*" -exec cp {} /home/cklosowski/Documents/pdfs/ ;

Post Promoter Pro

Posted by Chris Klosowski

Hi, I'm Chris Klosowski. Currently I am a Lead Developer of Easy Digital Downloads, where we build the easiest way to sell digital products with WordPress.

I am also the person behind Post Promoter Pro, the most effective way to promote your WordPress Content.

Leave a reply

Your email address will not be published. Required fields are marked *