The ‘csh shell scripting’ Archives
Posted January 9, 2004 by

csh/C Shell Scripts: for Loop Syntax

A for loop allows a program to iterate over a set of values. For loops in a C shell script are a useful means of iterating through files or other lists. This recipe describes the for loop syntax and provides some examples.

Posted January 9, 2004 by

csh/C shell scripts: if statement syntax

Conditional expressions give programs life. The ability to branch makes shell scripts powerful. This recipe shows the basic if then else structure for csh, the C shell.