问题
Recently my iPhoto database got all screwed up and I need to extract all of the originals from a folder structure to a central folder on the desktop. Instead of going one by one through all of the folders, I would like to move all of them through a bash command or script. Any suggestions.
I looked into rsync but I think that only takes the folders structure.
回答1:
find /path/to/original/folder -type f -name "*.jpg" -exec mv {} /path/to/new/folder \;
来源:https://stackoverflow.com/questions/5364579/move-all-jpeg-from-directory-structure-into-one-folder-on-mac-os-x