Move all .jpeg from directory structure into one folder on Mac OS X

别来无恙 提交于 2019-12-22 14:14:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!