projects
/
android-command-line.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pull files over adb using wildcards
[android-command-line.git]
/
adb-pull-wildcard.sh
diff --git a/adb-pull-wildcard.sh
b/adb-pull-wildcard.sh
new file mode 100755
(executable)
index 0000000..
e740009
--- /dev/null
+++ b/
adb-pull-wildcard.sh
@@ -0,0
+1,6
@@
+#!/bin/sh -e
+
+test -z "$1" && echo "usage: $0 /sdcard/DCIM/Camera/*20121111*" && exit 1
+
+ls $1 | tr -d '\r' | xargs -i sh -c 'echo {} ; adb pull {} .'
+