shell 常用命令备忘

前端之家收集整理的这篇文章主要介绍了shell 常用命令备忘前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1 遍历当前所有android application project文件夹,查找带有Test字符的文件夹,编译之后移动到同一个folder。

pattern="Test"
for_dirin*"${pattern}"*;do
[-d"${_dir}"]&&dir="${_dir}"
echo"${dir}"

cd${dir}
./gradlewcleanassemble

targetPath=output

mvapp/build/outputs/apk/app-debug.apk../$targetPath/${dir}.apk
cd../

done
原文链接:https://www.f2er.com/bash/392205.html

猜你在找的Bash相关文章