265 |
@itemx --color[=@var{WHEN}] |
@itemx --color[=@var{WHEN}] |
266 |
@opindex --colour |
@opindex --colour |
267 |
@cindex highlight, color, colour |
@cindex highlight, color, colour |
268 |
The matching string is surrounded by the marker specify in @var{GREP_COLOR}. |
Surround the matching string with escape sequences to display them in color |
269 |
@var{WHEN} may be `never', `always', or `auto'. |
on the terminal. The color is defined by the environment variable |
270 |
|
@var{GREP_COLOR} and defaults to `01;31' which means the text is red. |
271 |
|
@var{WHEN} is `never', `always', or `auto'. |
272 |
|
|
273 |
@item -@var{num} |
@item -@var{num} |
274 |
@opindex -NUM |
@opindex -NUM |
364 |
@item --label=@var{LABEL} |
@item --label=@var{LABEL} |
365 |
@opindex --label |
@opindex --label |
366 |
@cindex changing name of standard input |
@cindex changing name of standard input |
367 |
Displays input actually coming from standard input as input coming from file |
Display input actually coming from standard input as input coming from file |
368 |
@var{LABEL}. This is especially useful for tools like zgrep, e.g. |
@var{LABEL}. This is especially useful for tools like zgrep, e.g. |
369 |
@command{gzip -cd foo.gz |grep --label=foo something} |
@command{gzip -cd foo.gz |grep --label=foo something} |
370 |
|
|
576 |
@item GREP_COLOR |
@item GREP_COLOR |
577 |
@vindex GREP_COLOR |
@vindex GREP_COLOR |
578 |
@cindex highlight markers |
@cindex highlight markers |
579 |
This variable specifies the surrounding markers use to highlight the matching |
This variable specifies the color used to highlight the matching text. |
580 |
text. The default is control ascii red. |
The default is `01;31' which means red text on the default background. |
581 |
|
|
582 |
@item LC_ALL |
@item LC_ALL |
583 |
@itemx LC_COLLATE |
@itemx LC_COLLATE |