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


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: while Chapter 5
The C Shell
Next: 5.6 Built-in C Shell Commands
 

@



@

 

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 under "Expressions," earlier in this section. 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.6 Built-in C Shell Commands
Reference: while Book Index 5.6 Built-in C Shell Commands

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