A UNIX shell utility that evaluates expressions and prints results to stdout. This allows shell scripts (in shells that don't have good abilities, like some archaic /bin/sh's) to do simple arithmetic and tests.

For example, in Bourne Shell:

foo=`expr 5 '*' 2`
echo "5 * 2 = $foo"

will print out:

5 * 2 = 10 

Log in or register to write something here or to contact authors.