#!/bin/csh set i=1 set n=600 set step=1 while ($i<$n) if ($i<100) then echo $i else if ($i<200) then echo $i $i endif @ i = $i + $step end