- 论坛徽章:
- 0
|
原帖由 arnina 于 2008-7-24 14:52 发表 ![]()
不生效,:t;N;s/\n//;b t
是在干什么?
看看sed的基础吧,N,标签,
info sed:
`N'
Add a newline to the pattern space, then append the next line of
input to the pattern space. If there is no more input then `sed'
exits without processing any more commands.
`: LABEL'
[No addresses allowed.]
Specify the location of LABEL for branch commands. In all other
respects, a no-op.
`b LABEL'
Unconditionally branch to LABEL. The LABEL may be omitted, in
which case the next cycle is started.
`t LABEL'
Branch to LABEL only if there has been a successful `s'ubstitution
since the last input line was read or conditional branch was taken.
The LABEL may be omitted, in which case the next cycle is started. |
|