190 |
@opindex -o |
@opindex -o |
191 |
@opindex --only-matching |
@opindex --only-matching |
192 |
@cindex only matching |
@cindex only matching |
193 |
Print only the part of matching lines that actually matches @var{pattern}. |
Print only the non-empty parts of matching lines |
194 |
|
that actually match @var{pattern}. |
195 |
|
|
196 |
@item -q |
@item -q |
197 |
@itemx --quiet |
@itemx --quiet |
268 |
@opindex --color |
@opindex --color |
269 |
@opindex --colour |
@opindex --colour |
270 |
@cindex highlight, color, colour |
@cindex highlight, color, colour |
271 |
Surround the matching strings, matching lines, context lines, file names, |
Surround the matching non-empty strings, matching lines, context lines, |
272 |
line numbers, octet offsets, and separators (for fields and groups |
file names, line numbers, octet offsets, and separators (for fields and |
273 |
of context lines) with escape sequences to display them in color on |
groups of context lines) with escape sequences to display them in color |
274 |
the terminal. |
on the terminal. |
275 |
The colors are defined by the environment variable @var{GREP_COLORS} |
The colors are defined by the environment variable @var{GREP_COLORS} |
276 |
and default to `mt=01;31:ml=:cx=:fn=35:ln=32:bn=32:se=36' for bold red |
and default to `mt=01;31:ml=:cx=:fn=35:ln=32:bn=32:se=36' for bold red |
277 |
matched text, magenta file names, green line numbers, green octet offsets, |
matched text, magenta file names, green line numbers, green octet offsets, |
604 |
@cindex highlight markers |
@cindex highlight markers |
605 |
This variable is deprecated but still supported; its setting does not |
This variable is deprecated but still supported; its setting does not |
606 |
have priority over that of @code{GREP_COLORS}. |
have priority over that of @code{GREP_COLORS}. |
607 |
It specifies the color used to highlight the matching text. |
It specifies the color used to highlight the matching non-empty text. |
608 |
The default is `01;31' which means bold red text on the default |
The default is `01;31' which means bold red text on the default |
609 |
background. |
background. |
610 |
|
|
612 |
@vindex GREP_COLORS |
@vindex GREP_COLORS |
613 |
@cindex highlight markers |
@cindex highlight markers |
614 |
This variable specifies the colors used to highlight |
This variable specifies the colors used to highlight |
615 |
the matching text (mt), matching lines (ml), context lines (cx), |
the matching non-empty text (mt), matching lines (ml), context lines (cx), |
616 |
file names (fn), line numbers (ln), octet offsets (bn), |
file names (fn), line numbers (ln), octet offsets (bn), |
617 |
and separators (se, for fields and groups of context lines). |
and separators (se, for fields and groups of context lines). |
618 |
It is a colon-separated list of color specification assignments. |
It is a colon-separated list of color specification assignments. |