Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Last active August 5, 2021 07:23
Show Gist options
  • Save rummelonp/cea7ce7398c0338c6aa41db8d70dba30 to your computer and use it in GitHub Desktop.
Save rummelonp/cea7ce7398c0338c6aa41db8d70dba30 to your computer and use it in GitHub Desktop.
複数 Android 端末繋いでる時にまとめて adb 発行するやつ
#!/bin/sh
declare -a devices=($(adb devices | sed '1,1d' | awk '{ print $1 }'))
for device in ${devices[@]}; do
declare cmd="adb -s ${device} ${@}"
echo "${cmd}"
eval "${cmd}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment