1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 15:55:26 +02:00

grep: with-match (#16480)

* grep: with-match

---------

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
lyj 2025-05-14 15:05:48 +08:00 committed by GitHub
parent f523972d1c
commit 9f8b804998
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: