[Next] [Previous] [Up] [Top] [Contents]

9.9.4 while

9.9.4.2 Csh

while (condition)

command list

[break]

[continue]

end

If you want the condition to always be true specify 1 within the conditional test.

A C shell script equivalent to the one above is:

#!/bin/csh -f

while ($#argv != 0 )

echo $argv[1]

shift

end


Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]