for循环
一种可以是
for var in list;
do
command
done
这里的list可以是string也可以是sequence
另一种是:
for i in {a..z};
do
command
done
while循环
while condition
do
commands
done
until循环
x=0
until [ $x -eq 9 ]
let count++
echo $x
done
for循环
一种可以是
for var in list;
do
command
done
这里的list可以是string也可以是sequence
另一种是:
for i in {a..z};
do
command
done
while循环
while condition
do
commands
done
until循环
x=0
until [ $x -eq 9 ]
let count++
echo $x
done