Home >System Tutorial >LINUX >Detailed explanation of command-expr
The expr command is an expression calculation tool, use it to complete the evaluation operation of expressions.
Common operators for expr:
加法运算:+ 减法运算:- 乘法运算:\* 除法运算:/ 求摸(取余)运算:%
expr(选项)(参数)
--help:显示指令的帮助信息; --version:显示指令版本信息。
表达式:要求值的表达式。
result=`expr 2 + 3` result=$(expr $no1 + 5)
The above is the detailed content of Detailed explanation of command-expr. For more information, please follow other related articles on the PHP Chinese website!