(1)列举本地文件
for i in `ls`; do echo $i; done
(2)例子2
for((i=1;i<100;i+=2)); do echo $i; done
(3)遍历数组
for((i=0;i<${#myArray[@]};i++)){ echo ${myArray[i]} }
(4)xxx
浙公网安备 33010602006230号
浙ICP备14015892号