devices=`adb devices | sed '1d;$d' | sed 's/device//g'` */sed '1d;$d' : 删除第一行和最后一行*/ device_id= select var in $devicesdo >-------device_id=$var>-------break
done echo $device_id