You have to use backticks not single quotes around the expr command:
Code:
echo `expr $a + $b`
If using bash you can use the "new" syntax for
command substitution, that is
$(command) in place of the backticks. Moreover, you may consider the
arithmetic operator $((expression)), e.g.
If compatibility with the older Bourne shell /bin/sh is requested, then stick with backticks and expr.