#!/usr/bin/csh #File's name: countdown.csh #Author: Jen Chen #Updated on: #Copyrighted by Jen Chen ############################################## #Example about using WHILE-loop in C-shell. set count = 0 set num = 10 while ( $num > $count ) echo $num @ num = $num - 1 sleep 1 if ( $num == 0 ) then echo "Lift off" endif end