127 |
terminal driver interprets some of it as commands. |
terminal driver interprets some of it as commands. |
128 |
.TP |
.TP |
129 |
.BI \-\^\-colour[=\fIWHEN\fR] ", " \-\^\-color[=\fIWHEN\fR] |
.BI \-\^\-colour[=\fIWHEN\fR] ", " \-\^\-color[=\fIWHEN\fR] |
130 |
Surround the matching string with the marker find in |
Surround the matching string with escape sequences to display them in color |
131 |
|
on the terminal. The color is defined by the environment variable |
132 |
.B GREP_COLOR |
.B GREP_COLOR |
133 |
environment variable. WHEN may be `never', `always', or `auto' |
and defaults to `01;31' which means the text is red. |
134 |
|
.I WHEN |
135 |
|
is `never', `always', or `auto'. |
136 |
.TP |
.TP |
137 |
.BR \-c ", " \-\^\-count |
.BR \-c ", " \-\^\-count |
138 |
Suppress normal output; instead print a count of |
Suppress normal output; instead print a count of |
248 |
stop on the first match. |
stop on the first match. |
249 |
.TP |
.TP |
250 |
.BI \-\^\-label= LABEL |
.BI \-\^\-label= LABEL |
251 |
Displays input actually coming from standard input as input coming from file |
Display input actually coming from standard input as input coming from file |
252 |
.I LABEL. |
.I LABEL. |
253 |
This is especially useful for tools like zgrep, e.g. |
This is especially useful for tools like zgrep, e.g. |
254 |
.B "gzip -cd foo.gz |grep --label=foo something" |
.B "gzip -cd foo.gz |grep --label=foo something" |