letlet
expressions
or ((
expressions
))
Korn shell only. Perform arithmetic as specified by one or more expressions
. expressions
consist of numbers, operators, and shell variables (which don't need a preceding ExamplesEach of these examples adds 1 to variable i=`expr $i + 1` sh, ksh88, ksh93 let i=i+1 ksh88 and ksh93 let "i = i + 1" (( i = i + 1 )) (( i += 1 )) (( i++ )) ksh93 only |
|