Compteur trivial

From Tuxunix
Jump to: navigation, search
while [ "$i" != "10" ]; do
       $((++i))
       echo ${i}
done

for ((i=1; i<=${#}; i=++i)); do
       echo ${i}
done