How do you add two variables in Unix?

Nguyễn Trà

New member
How do you add two variables in Unix?
Answer
How to add two variables in shell script
  1. initialize two variables.
  2. Add two variables directly using $(…) or by using external program expr.
  3. Echo the final result.
 

Tìm kiếm

Back
Top