diff --git a/pages/common/grep.md b/pages/common/grep.md index eb774e877f..e7b0b5f662 100644 --- a/pages/common/grep.md +++ b/pages/common/grep.md @@ -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: