From 9cca55203cfe67b84c9257a08a0afa76a998c957 Mon Sep 17 00:00:00 2001 From: Feber Date: Sat, 8 Dec 2018 19:01:13 +0700 Subject: [PATCH] rg: add -v for invert matching (#2638) --- pages/common/rg.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/rg.md b/pages/common/rg.md index e469d34e5..f713177cb 100644 --- a/pages/common/rg.md +++ b/pages/common/rg.md @@ -25,3 +25,7 @@ - Only list matched files -- useful when piping to other commands: `rg --files-with-matches {{pattern}}` + +- Show lines that do not match the given pattern: + +`rg --invert-match {{pattern}}`