homediscover ncsapartnershipsoutreachsoftware_tech
searchspotlightadv_computingsciencedivisions
left lleft up rright right comment

Basic Scripting with the csh

Scripting with the csh is something you probably don't want to do too much of. As a scripting language, the csh lacks many powerful features available in real languages like perl and more powerful shells such as sh and bash.

However, short csh script can ease repetitive tasks and allow you to use your already existant csh tricks in simple scripts. Also, configuration files such as your ~/.cshrc use csh constructs, so understanding scripting can help you modify them. In this section, we will cover scripting basics, command line parsing, and simple control flow in the csh. By the end of this chapter, you should be able to read and write basic csh scripts.

In the rest of this chapter, I will use shell script and csh script interchangeably. Most people think of shell script as /bin/sh, so this is sloppy language on my behalf, but you've been warned!



left lleft up rright right comment



NCSA
The National Center for Supercomputing Applications

University of Illinois at Urbana-Champaign

[email protected]

Last modified: June 19, 1997