#!/bin/bash # Script adb+ # Usage # You can run any command adb provides on all your current devices # ./adb+ is the equivalent of ./adb -s # # Examples # ./adb+ version # ./adb+ install apidemo.apk # ./adb+ uninstall com.example.android.apis adb devices | while read line do if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ] then device=`echo $line | awk '{print $1}'` echo "$device $@ ..." adb -s $device $@ fi done