Last Updated: February 25, 2016
·
343
· macodev

Copy every file from every sub-directory into another directory

Imagine you have a lot of files scattered across several sub directories contained into BaseFolder, and you want to collect every file into a single directory DestFolder.

From the mac terminal, write this:

find ~/BaseFolder -type f -exec cp {} ~/DestFolder \;