- 论坛徽章:
- 0
|
本帖最后由 crowsy001 于 2010-04-12 23:01 编辑
我有个文件,其内容是
The honeysuckle band played all night long for only $90.
It was an evening of ...
mr_caoke 发表于 2010-04-12 14:06 ![]()
下面的解释有部分错误,请略过
系统 AIX
man sed 得到如下两句
A command line with two addresses separated by commas s
elects the entire range from the first line that matches the first address
through the next line that matches the second.
(If the second address is a number less than or equal to the line number first selected, only one line is selected.)
Thereafter, the process is repeated, looking again for the first address.
我的理解: 1、当命令行为两个地址域时,首先匹配第一个地址域,直到符合第二个地址域结束
2、如果第二个地址域是一个数字 且小于等于 第一个地址域行号, 仅仅一行被过滤 (如果第二个域为数字N ,这 N+1丢失)
那么 再次读入, 并再次匹配第一个地址域 |
|