First page Back Continue Last page Overview Graphics
Scripts
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
endif
end
To aid with scripting, tcsh has a number of built-in commands, such as foreach, if, while, etc.
Notes: