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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With