001、
[root@pc1 test]# ls a.sh [root@pc1 test]# cat a.sh ## 测试程序 #!/bin/bash for ((i = 1; i <= 3; i++)) do echo "--------outer loop:$i---------" for ((j = 1; j <= 3; j++)) do echo "inner loop:$j" done done
标签:shell,双循环,pc1,sh,linux,test From: https://www.cnblogs.com/liujiaxin2018/p/16859396.html