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:
parent
d99f6443aa
commit
7af8ef1b18
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue