一句往sdcard push文件的命令

实际上是一个脚本,可以放在一个命令行中运行:

 for i in `ls *梁*.mp3`:; do echo adb push ${i} /sdcard/music; adb push ${i} /sdcard/music; done

对应到脚本文件:

#/bin/sh

for i in `ls *梁*.mp3`:
do
 echo "adb push ${i} /sdcard/music/"
 adb push "${i}" /sdcard/music/
done

依此类推,还有诸如需要一次安装APK之类的都可以依样做法

for i in `ls *.apk`:; do echo adb install ${i}; adb install ${i}; done