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

done
 
echo $device_id

05-26 12:31