This blog post has been published on 2010-02-09 and may be out of date.
bash – Version < 3.0:
for i in $(seq 1 500)
do
echo "I will not throw paper airplanes in class."
done
bash – Version 3.0+:
for i in {1..500}
do
echo "I will not throw paper airplanes in class."
done
bash – Alternative:
for (( c=1; c< =500; c++ ))
do
echo "I will not throw paper airplanes in class."
done
bash – unendliche Schleife:
for (( ; ; ))
do
echo "I will not throw paper airplanes in class."
done
[ CTRL+C ]
um diese Schleife wieder zu beenden