UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: whileChapter 5
The C Shell
Next: 5. The C Shell
 

@

@ variable = expression
@ variable[n] = expression
@

Assign the value of the arithmetic expression to variable, or to the nth element of variable if the index n is specified. With no variable or expression specified, print the values of all shell variables (same as set). Expression operators as well as examples are listed in the earlier section "Expressions." Two special forms are also valid:

@ variable++

Increment variable by one.

@ variable--

Decrement variable by one.


Previous: Reference: whileUNIX in a Nutshell: System V EditionNext: 5. The C Shell
Reference: whileBook Index5. The C Shell

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System