EXPR.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. .TH EXPR 1
  2. .SH NAME
  3. expr - evaluate experession
  4. .SH SYNOPSIS
  5. fBexpr fIarg ...fR
  6. .br
  7. .de FL
  8. .TP
  9. \fB\$1\fR
  10. \$2
  11. ..
  12. .de EX
  13. .TP 20
  14. \fB\$1\fR
  15. # \$2
  16. ..
  17. .SH EXAMPLES
  18. .EX "x=`expr $x + 1`" "Add 1 to shell variable x"
  19. .SH DESCRIPTION
  20. .PP
  21. fIExprfR computes the value of its argument and writes the result on
  22. standard output.  The valid operators, in order of increasing precedence,
  23. are listed below.  Operators grouped by {...} have the same precedence.
  24. The operators are: |, &, {<, <=, ==, !=, >=, >}, {+, -}, *, /, %, and :.
  25. Parentheses are permitted.
  26. .SH "SEE ALSO"
  27. .BR sh (1),
  28. .BR test (1).