Issue
Basically, I have a very large filesystem that contains media. It has a ton of silly subfolders. I'd like to find all the files (any file) and copy them flatly into a directory. What's the best/easiest way to do this?
Assume that the directory of media is located at /home/user/media
and the location of the destination directory is /home/user/flatmedia
I'd like to do this using standard mac tools.
Solution
find /home/user/media -type f -exec cp {} /home/user/flatmedia \;
Note - if there are any duplicates there's no particular guarantee about which one you'll get.
Answered By - Ganesh Sittampalam Answer Checked By - Willingham (WPSolving Volunteer)