![]() 7.4. Arithmetic Expressions
7.4.1. Operatorsbash uses arithmetic operators from the C programming language; the following list is in decreasing order of precedence. Use parentheses to override precedence.
7.4.2. ExamplesSee the let built-in command for more information and examples. let "count=0" "i = i + 1" Assign i and count let "num % 2"; echo $? Test for an even number ![]() Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|