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

grep: adjust options (#17042)

This commit is contained in:
Managor 2025-07-06 10:40:43 +03:00 committed by GitHub
parent d99f6443aa
commit 7af8ef1b18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@
- Print 3 lines of [C]ontext around, [B]efore or [A]fter each match:
`grep --{{context|before-context|after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
`grep {{--context|--before-context|--after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
- Print file name and line number for each match with color output: