#!/bin/ksh # # Counter realized in Korn-Shell # typeset integer j let j=0 while [ 1 ] do let j=j+1 echo $j if [ $j = 140 ] then exit 0 fi done