Nguyễn Cap Tuyến
New member
How do you do an arithmetic operation in Unix?
Answer
Answer
- expr command. In shell script all variables hold string value even if they are numbers. …
- Addition. We use the + symbol to perform addition. …
- Subtraction. To perform subtraction we use the – symbol. …
- Multiplication. To perform multiplication we use the * symbol. …
- Division. To perform division we use the / symbol. …
- Modulus.