- 论坛徽章:
- 0
|
用sed如何删除2至10行与aaa匹配的行?
原帖由 "红袖添香"][quote:d5eec14ee5="swysn" 发表:
红袖添香
不能实现阿
不应该吧,我在OpenBSD下测试过的。
你是什么系统?也许 sed 版本不一样?[/quote]
...
ters in the file are `#n', the default output is suppressed.
This is the same as specifying the -n option on the command line.
The sed utility exits 0 on success or >0 if an error occurred.
SEE ALSO
awk(1), ed(1), grep(1), regex(3), re_format(7)
STANDARDS
The sed function is expected to be a superset of the IEEE Std1003.2
(``POSIX.2'') specification.
HISTORY
A sed command appeared in Version 7 AT&T UNIX.
OpenBSD 3.1 December 30, 1993 5
我的 man page 上说是 POSIX.2 标准的,不是特殊的呀~ >_< |
|