csh loop

shell 2013. 12. 11. 16:57


#!/bin/csh

# demoloop.csh - Sample loop script

set j = 1

while ( $j <= 5 )

echo "Welcome $j times"

@ j++

end




출처:http://www.cyberciti.biz/faq/csh-shell-scripting-loop-example/