home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


@

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

Assign the value of the arithmetic expression to variable , or to the n th 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: while UNIX in a Nutshell: System V Edition Next: 5. The C Shell
Reference: while Book Index 5. 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