shell --for双括号循环

 1 #!/bin/bash
 2 # for控制测试
 3 
 4 for str in "zhangsan" "lisi" "wangwu"
 5 do
 6     echo $str
 7 done
 8 
 9 for ((i=0;i<=5;i++))
10 do
11     echo $i
12 done

 

posted @ 2014-05-25 21:43  helloweworld  阅读(971)  评论(0编辑  收藏  举报