Shell

How to perform arithmetic operations on numbers?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

One way: $(( 1 + 2 )) Another way: expr 1 + 2