将所有.jpeg从目录结构移动到Mac OS X上的一个文件夹中 [英] Move all .jpeg from directory structure into one folder on Mac OS X

查看:165
本文介绍了将所有.jpeg从目录结构移动到Mac OS X上的一个文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我的iPhoto数据库搞砸了,我需要将文件夹结构中的所有原件解压缩到桌面上的中央文件夹。我想通过bash命令或脚本移动所有文件夹,而不是一个接一个地遍历所有文件夹。有什么建议么。

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.

我调查了rsync,但我认为只采用文件夹结构。

I looked into rsync but I think that only takes the folders structure.

推荐答案

find /path/to/original/folder -type f -name "*.jpg" -exec mv {} /path/to/new/folder \;

这篇关于将所有.jpeg从目录结构移动到Mac OS X上的一个文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆