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 \;
Written by Marco Cervellin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Copy
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#