#!/bin/ksh -p typeset -i start inc start=$(($1+0)) inc=$(($2+0)) if ((start == 0)) ; then start=10 ; fi if ((inc == 0)) ; then inc=10 ; fi while (:) ; do print -n $start" " read line start=$((start+inc)) done