doc: Update sed.md (#589)

This commit is contained in:
FunKeen 2024-07-10 11:02:58 +08:00 committed by GitHub
parent 91bc78cf3b
commit 7c11c4631a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -172,9 +172,10 @@ sed '2,$d' file
sed '$d' file
```
删除文件中所有开头是test的行
删除文件中所有开头是test的行(d写外边效果一样)
```shell
sed '/^test/d' file
sed '/^test/'d file
```