Minix2.0/man/man1/expr.1

.TH EXPR 1
.SH NAME
expr \- evaluate experession
.SH SYNOPSIS
\fBexpr \fIarg ...\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH EXAMPLES
.EX "x=\`expr \$x + 1\`" "Add 1 to shell variable x"
.SH DESCRIPTION
.PP
\fIExpr\fR computes the value of its argument and writes the result on
standard output.  The valid operators, in order of increasing precedence,
are listed below.  Operators grouped by {...} have the same precedence.
The operators are: |, &, {<, <=, ==, !=, >=, >}, {+, \-}, *, /, %, and :.
Parentheses are permitted.
.SH "SEE ALSO"
.BR sh (1),
.BR test (1).