Skip to content

Commit

Permalink
sed: fix "!p" example (rstacruz#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
tripleee authored Nov 1, 2022
1 parent 1a0c86e commit a5abcae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sed.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit a5abcae

Please sign in to comment.