Linux Know-How provides a collection of introductory texts on often needed Linux skills. |
Home Bash Guide for Beginners Bash and Bash scripts Advantages of the Bourne Again Shell Shell arithmetic | |
See also: Conditionals | |
Search the VIAS Library | Index | |
Shell arithmeticThe shell allows arithmetic expressions to be evaluated, as one of the shell expansions or by the let built-in. Evaluation is done in fixed-width integers with no check for overflow, though division by 0 is trapped and flagged as an error. The operators and their precedence and associativity are the same as in the C language, see Chapter 3.
|
|
Home Bash Guide for Beginners Bash and Bash scripts Advantages of the Bourne Again Shell Shell arithmetic |