Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 11 lines (8 sloc) 0.393 kb
#!/bin/sh -x
sdcard=/sdcard/DCIM/Camera/
to=/data/DCIM/Camera/
adb shell find $sdcard -mindepth 1 -maxdepth 1 | sed "s!$sdcard/*!!" | tr -d '\r' | sort > /tmp/dcim.android
test -d $to || mkdir $to
find $to -mindepth 1 -maxdepth 1 | sed "s!$to!!" | sort > /tmp/dcim.disk
diff -uw /tmp/dcim.android /tmp/dcim.disk | grep -- "^-" | sed 's/^-//' | \
xargs -i sh -xc "adb pull $sdcard/{} $to/{}"
Jump to Line
Something went wrong with that request. Please try again.