user6439844 user6439844 - 5 months ago 8
Linux Question

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

What is the main difference between

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

Answer

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

Comments