next up previous contents
Next: A Simple Script Up: Introduction Previous: Bourne - C shell

Variables

Variables are, by the author's convention, always in UPPER CASE CHARACTERS. This makes them easier to recognize.

Variables are assigned a value(s) using an assignment operation:

VARIABLE=string
Note that there are NO spaces before and after the equal (=) sign: this is essential, otherwise the shell would interpret those spaces.

The content of the variable is represented by prefixing the variable with a dollar sign ($). For example, $FRUIT means the content of variable FRUIT.


Claude Cantin
Sun Sep 1 02:02:26 EDT 2002