Name

@

Synopsis

                  @ [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 under Section 8.5 earlier in this chapter. Two special forms are also valid:

@ variable ++

Increment variable by 1.

@ variable --

Decrement variable by 1.

Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.