sh小结

xiaoxiao2021-02-28  97

sh /home/sgs/tmp/test.sh $ROBOT_IP $VERSION

运行test.sh脚本,并将$ROBOT_IP $VERSION作为第一第二参数传入。

adb connect $1 将外部传入第一个参数作为ip地址,是sh中接收参数并使用的示例。

sleep 1m:表示sleep一分钟

while:

do

//do something

done

上述是sh中的while语句

if [ $ -eq 1]; then

fi表示sh中的一个判断语句

 

转载请注明原文地址: https://www.6miu.com/read-67627.html

最新回复(0)