csh shell scripting tutorials

csh/C shell scripts: for loop syntax

Contributed by Rex on January 9, 2004 under csh shell scripting

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.

Comments
 

csh/C shell scripts: if statement syntax

Contributed by Rex on under csh shell scripting

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.

Comments