Thursday, February 23, 2017

linux - *nix One-Liner: Recursively find files by extension, and copy them to a new directory named for the extension

Given many directories/sub-directories containing many different file types (csv, txt, jpg, etc.), what command will search each directory recursively and copy files out into a new top-level directory named after each extension.


Is there a way to accomplish this with a one-liner?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...