- 论坛徽章:
- 8
|
回复 3# insnowind
gnu sed官方文档里就有吧
- /regexp/
- This will select any line which matches the regular expression regexp. If regexp itself includes any / characters, each must be escaped by a backslash (\).
- The empty regular expression ‘//’ repeats the last regular expression match (the same holds if the empty regular expression is passed to the s command). Note that modifiers to regular expressions are evaluated when the regular expression is compiled, thus it is invalid to specify them together with the empty regular expression.
复制代码 http://www.gnu.org/software/sed/manual/html_node/Addresses.html |
|