Von eins bis zehn zählen, in ksh97, z.B. unter AIX 4.2.1, Stand Mitte 1997:

1
2
3
4
5
6
typeset -i i
i=1
while [ i -lt 11 ]; do
      i=$((i+1))
      echo $i
done

Und in bash 3.2.17 (z.B. auch auf dem Mac ab OSX 10.5.2), Stand mehr oder weniger „heute”:

1
2
3
for((i=1; i<11; i++)); do
     echo $i 
done

Wie die Zeit vergeht…