First page Back Continue Last page Overview Graphics
A script is a sequence of shell commands, usually stored in a file and either sourced or executed like a program. Here's a simple example:
foreach file (*)
if (-d $file) then
echo $file is a directory
To aid with scripting, tcsh has a number of built-in commands, such as foreach, if, while, etc.