#!/usr/bin/ksh c=1 while [[ $c -le 100 ]] do # your-unix-command-here echo "$c" let c=c+1 done
http://www.cyberciti.biz/faq/unix-for-loop-1-to-10/