# Output 1 2 3...99
for i in {1..99}
do
echo $i
done
for ((i=1;i<=99;i++))
do
echo $i
done
for i in `seq 1 99`
do
echo $i
done
# Output 1 3 5...99
for i in `seq 1 2 99`
do
echo $i
done
# Output a to z
for i in {a..z}
do
echo $i
done
try below:
echo {a..z}
不過1 3 5或要分行就不太一樣
還是說這是要筆記 bash loop的pattern :p
IKARi
ikari.ikari a.t. gmail