sed: fix "!p" example (#1898)

This commit is contained in:
tripleee 2022-11-01 05:19:16 +02:00 committed by GitHub
parent 1a0c86e002
commit a5abcaea10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
sed.md
View File

@ -50,7 +50,7 @@ Print after a given line is found.
### Print everything except matching
```bash
sed -n '/regex/d;'
sed -n '/regex/!p'
```
Print everything except lines matching regex. Useful for printing files with comments.