sed: fix "!p" example (#1898)
This commit is contained in:
parent
1a0c86e002
commit
a5abcaea10
2
sed.md
2
sed.md
|
@ -50,7 +50,7 @@ Print after a given line is found.
|
||||||
### Print everything except matching
|
### Print everything except matching
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sed -n '/regex/d;'
|
sed -n '/regex/!p'
|
||||||
```
|
```
|
||||||
|
|
||||||
Print everything except lines matching regex. Useful for printing files with comments.
|
Print everything except lines matching regex. Useful for printing files with comments.
|
||||||
|
|
Loading…
Reference in New Issue