shell循环for-while-seq
#!/bin/sh
while :;do
((++i))
echo $i
((i==100))&&break
done
#!/bin/sh
for i in {1..100};do
echo $i
done
#!/bin/sh
i=1
while [ $i -le 100 ];do
echo $i
i=$(($i+1))
done
如果单纯只是数字的话,seq最简单..
seq 1 100