本文介绍了仅将新文件(照片)从Android adb拉到linux操作系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直像这样将照片从我的android设备拉到我的linux操作系统:

I've been pulling photos from my android device to my linux OS like this:

$ adb pull <what-to-pull> <where-to-place>

将来,我宁愿只拉那些我没有欠款的东西.

In the future I would prefer to pull only the ones I don't alreay have.

做到这一点的最佳方法是什么?

What's the best way to do this?

也许我可以将下载的所有照片都放在同一个文件夹中,而跳过那些我要从中提取的文件夹中已经存在的名称的照片?该怎么做?

Maybe I could put all the photos I've downloaded to the same folder and skip the ones with names that already exist in the folder I'm pulling from? How to do that?

那是最好的方法吗?是否存在更简便的方法?

Is that even the best way? Does an easier way to do this exist?

如果是...如何?

顺便说一句,我正在使用arch linux,以防发行版影响您的建议答案.

I'm on arch linux by the way, in case the distribution effects your suggested answer.

推荐答案

adb shell find "/sdcard/DCIM" -iname "*.jpg" | tr -d '\015' | while read line; do adb pull $line; done;

^效果很好.

来自这里.

这篇关于仅将新文件(照片)从Android adb拉到linux操作系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 12:30