#! /bin/sh MAX="10" i="0" while true do echo "i = [$i]" # increment i i=`expr $i + 1` if [ $i -gt $MAX ]; then break fi done