Expr command

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search

70.57.19.177 (Talk)
(expr (bourne shell builtin) command - Evaluate Expressions)
Next diff →

Revision as of 15:46, 14 April 2006

expr is the expression command in bourne type shells. On the WRT, expr is handled by busybox.

expr takes expressions. The most common expressions deal with simple arithmetic operations:


~ # expr 5 + 6

11

~ # expr 39 / 4

9


Try expr --help for more details.