From a5abcaea10874ac20916dfda317cec0f653a8b20 Mon Sep 17 00:00:00 2001 From: tripleee Date: Tue, 1 Nov 2022 05:19:16 +0200 Subject: [PATCH] sed: fix "!p" example (#1898) --- sed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sed.md b/sed.md index e4d0492c12..509e4d01b0 100644 --- a/sed.md +++ b/sed.md @@ -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.