Home / code / shell

Calculate

If you want to calculate you need expr
$result= expr $variable1 expression $variable2
+ expr 1 + 3
- expr 2 - 1
* expr 10 \* 3
/ expr 10 / 2
% expr 20 % 3

 

TOP

Latest script:

 

Books: