- 论坛徽章:
- 0
|
本帖最后由 fangang001 于 2014-12-16 15:22 编辑
sed -n ':;1,5!N;$!ta;{s/.*:\(\w\+\)/\1/;q}' admin
楼主要匹配第6行之后的什么内容?如果需要匹配内容执行lable应该不是这么用的吧
b label
Branch to label; if label is omitted, branch to end of script.
t label
If a s/// has done a successful substitution since the last input line was read and since the last t or T command, then branch to label; if label is omitted, branch to end of script.
T label
If no s/// has done a successful substitution since the last input line was read and since the last t or T command, then branch to label; if label is omitted, branch to end of script. |
|