You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
642 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

expr
===
一款表达式计算工具
## 补充说明
**expr命令** 是一款表达式计算工具,使用它完成表达式的求值操作。
expr的常用运算符
* 加法运算:+
* 减法运算:-
* 乘法运算:\*
* 除法运算:/
* 求摸(取余)运算:%
### 语法
```
expr(选项)(参数)
```
### 选项
```
--help显示指令的帮助信息
--version显示指令版本信息。
```
### 参数
表达式:要求值的表达式。
### 实例
```
result=`expr 2 + 3`
result=$(expr $no1 + 5)
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->