From 9f8b8049985eba408123fbbfd95c53a0da0ad33f Mon Sep 17 00:00:00 2001 From: lyj Date: Wed, 14 May 2025 15:05:48 +0800 Subject: [PATCH] grep: with-match (#16480) * grep: with-match --------- Co-authored-by: Fazle Arefin --- pages/common/grep.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/grep.md b/pages/common/grep.md index dfc5240891..73f5af0e5a 100644 --- a/pages/common/grep.md +++ b/pages/common/grep.md @@ -13,7 +13,7 @@ - Search for a pattern in all files recursively in a directory, showing line numbers of matches, ignoring binary files: -`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}` +`grep {{[-r|--recursive]}} {{[-n|--line-number]}} {{[-I|--binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}` - Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode: