Von eins bis zehn zählen, in ksh97, z.B. unter AIX 4.2.1, Stand Mitte 1997:
CODE:
typeset -i i
i=1
while [ i -lt 11 ]; do
i=$((i+1))
echo $i
done
Und in bash 3.2.17 (OSX 10.5.2), Stand heute:
CODE:
for((i=1; i<11; i++)); do
echo $i
done
Wie die Zeit vergeht...