等待20s后退出
a=1 b=20 while(true) do if [ $a -eq $b ] then echo "20s !!!" break else if [[ true ]]; then sleep 1 let "a=a+1" echo $a else break fi fi done