linux bash shell for 定次循环
count.sh
[root@tmp tls-ssl-for-ingress]# cat count.sh #!/bin/bash for ((COUNT = 1; COUNT <= 3; COUNT++)); do echo $COUNT sleep 1 done [root@tmp tls-ssl-for-ingress]#
运行结果
[root@tmp tls-ssl-for-ingress]# sh count.sh 1 2 3 [root@tmp tls-ssl-for-ingress]#
0顶
0 踩
共 0 条评论