Search notes:

Bash built-in: et

let evaluates arithmetic expressions.
id++, id-- variable post-increment, post-decrement
++id, --id variable pre-increment, pre-decrement
-, + unary minus, plus
!, ~ logical and bitwise negation
** exponentiation
+, -, *, /, % addition, substraction, multiplication, division, remainder
<<, >> left and right bitwise shifts
<=, >=, <, > comparison
==, != equality, inequality
&, ^, |, &&, || Bitwise operations (and, xor, or)
&, ^, | Logical operations (and, or)
expr ? expr : expr Conditional (ternary) operator
=, *=, /=, %=, `+=, -=, <<=, >>=, `&=, ^=, |= assignment
num=41
let num++
echo $num

See also

The shell command expr.
Bash builtins

Index