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