1

Arithmetic expansion

view story
linux-howto

http://wiki.bash-hackers.org – $(( )) $[ ] The arithmetic expression is evaluated and expands to the result. The output of the arithmetic expansion is guaranteed to be one word and a digit in Bash. Please do not use the second form $[ ... ]! It's deprecated. The preferred and standardized form is $(( ... ))! (HowTos)