Skip to content

Commit

Permalink
doc: Update sed.md (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
FunKeen authored Jul 10, 2024
1 parent 91bc78c commit 7c11c46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/sed.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ sed '2,$d' file
sed '$d' file
```

删除文件中所有开头是test的行:
删除文件中所有开头是test的行(d写外边效果一样)

```shell
sed '/^test/d' file
sed '/^test/'d file
```

Expand Down

0 comments on commit 7c11c46

Please sign in to comment.