doc: Update sed.md (#589)
This commit is contained in:
parent
91bc78cf3b
commit
7c11c4631a
|
|
@ -172,9 +172,10 @@ sed '2,$d' file
|
||||||
sed '$d' file
|
sed '$d' file
|
||||||
```
|
```
|
||||||
|
|
||||||
删除文件中所有开头是test的行:
|
删除文件中所有开头是test的行(d写外边效果一样):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
sed '/^test/d' file
|
||||||
sed '/^test/'d file
|
sed '/^test/'d file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue