user6439844 user6439844 - 1 year ago 53
Linux Question

What is the difference between $(()) and expr?

What is the main difference between

$(())
and
expr
in Unix-Like systems?

Answer Source

$(()) will almost certainly be within the shell that you are using. expr may be an external call