![[ 永远的UNIX::UNIX技术资料的宝库 ]](/images/title.gif)
|
| 首页 > 系统管理 > Linux > 正文 |
 |
| Linux 指令篇:字串处理--expr |
| http://linuxfab.cx/ (2001-04-30 14:27:05) |
名称:expr
### 字串长度
shell>> expr length "this is a test"
14
### 数字商数
shell>> expr 14 % 9
5
### 从位置处抓取字串
shell>> expr substr "this is a test" 3 5
is is
### 数字串 only the first character
shell>> expr index "testforthegame" e
2
### 字串真实重现
shell>> expr quote thisisatestformela
thisisatestformela
(http://www.fanqiang.com)
进入【UNIX论坛】
|
|
| 相关文章 |
Linux 指令篇:字串处理--tr (2001-04-30 14:27:44) Linux 指令篇:字串处理--expr (2001-04-30 14:27:05)
|
|
|
|
 |
★ 樊强制作 欢迎分享 ★ |