How do you do addition in Unix?

Hưng Thịnh

New member
How do you do addition in Unix?
Answer
The following arithmetic operators are supported by Bourne Shell.
…
Unix / Linux – Shell Arithmetic Operators Example.

Operator

Description

Example

+ (Addition)

Adds values on either side of the operator

`expr $a + $b` will give 30
 

Tìm kiếm

Back
Top