From 4de90affefddbbb8cd1910c60f332a09ad161d13 Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Thu, 21 Mar 2024 14:22:25 +0000 Subject: [PATCH] docs(grep): :memo: Simple invert grep example. --- 51_grep_and_regex/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/51_grep_and_regex/README.md b/51_grep_and_regex/README.md index 550c5a5..3da7f77 100644 --- a/51_grep_and_regex/README.md +++ b/51_grep_and_regex/README.md @@ -32,6 +32,9 @@ grep -A 10 -B 10 # OR has to be escaped. grep "continuity\|PID" + +# inverting match +grep -v "lines not containing this string" ``` ## Perl grep expressions