方法一:
#!/bin/bash
for i in `seq `
do
#code here
echo $i
done
方法二:C语言风格
#!/bin/bash
for ((i=; i<=; i++))
do
printf "%s\n" "$i"
done
方法三:
#!/bin/bash
i=
while [ "$i" -lt "" ]
do
#code here
echo $i
#i=$[ $i + ]
((i++))
done
方法一:
#!/bin/bash
for i in `seq `
do
#code here
echo $i
done
方法二:C语言风格
#!/bin/bash
for ((i=; i<=; i++))
do
printf "%s\n" "$i"
done
方法三:
#!/bin/bash
i=
while [ "$i" -lt "" ]
do
#code here
echo $i
#i=$[ $i + ]
((i++))
done