August 2000
Intermediate to advanced
816 pages
29h 45m
English
let
let expressions
Perform arithmetic as specified by one or more integer expressions. expressions consist of numbers, operators, and shell variables (which don’t need a preceding $). Expressions must be quoted if they contain spaces or other special characters. For more information and examples, see Section 7.5 earlier in this chapter. See also expr in Chapter 3.
Both of the following examples add 1 to variable i:
let i=i+1 let "i = i + 1"
Read now
Unlock full access