Permalink
Browse files

pull files over adb using wildcards

  • Loading branch information...
1 parent e9d9f0e commit f341cc815ec57a8bf1569723925f8e5db678db5c @dpavlin committed Nov 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 adb-pull-wildcard.sh
View
6 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 {} .'
+

0 comments on commit f341cc8

Please sign in to comment.