expr
NAME
expr - evaluate an expression
SYNOPSIS
expr arg operator arg
DESCRIPTION
Evaluate an expression and print the result. The shell has no
arithmetic of its own, so this is how a shell loop counted:
i=`expr $i + 1`
Handles + - \* / % and the comparisons = != < <= > >=, which prints
1 for true and 0 for false.
EXAMPLES
expr 6 + 7
expr 100 / 7
expr 5 '>' 3
SEE ALSO
bc(1), sh(1), test(1)