186 |
as the pattern; useful to protect patterns beginning with |
as the pattern; useful to protect patterns beginning with |
187 |
.BR \- . |
.BR \- . |
188 |
.TP |
.TP |
189 |
|
.BI \-\^\-exclude= FILE_PATTERN |
190 |
|
.RI "Skip files " "and directories" " that match " FILE_PATTERN. |
191 |
|
.TP |
192 |
.BR \-F ", " \-\^\-fixed-strings |
.BR \-F ", " \-\^\-fixed-strings |
193 |
Interpret |
Interpret |
194 |
.I PATTERN |
.I PATTERN |
195 |
as a list of fixed strings, separated by newlines, |
as a list of fixed strings, separated by newlines, |
196 |
any of which is to be matched. |
any of which is to be matched. |
|
.BR \-P ", " \-\^\-perl-regexp |
|
|
Interpret |
|
|
.I PATTERN |
|
|
as a Perl regular expression. |
|
197 |
.TP |
.TP |
198 |
.BI \-f " FILE" "\fR,\fP \-\^\-file=" FILE |
.BI \-f " FILE" "\fR,\fP \-\^\-file=" FILE |
199 |
Obtain patterns from |
Obtain patterns from |
227 |
.I PATTERN |
.I PATTERN |
228 |
and the input files. |
and the input files. |
229 |
.TP |
.TP |
230 |
|
.BI \-\^\-include= FILE_PATTERN |
231 |
|
Search only files that match |
232 |
|
.I FILE_PATTERN |
233 |
|
(using wildcard matching). |
234 |
|
.TP |
235 |
.BR \-L ", " \-\^\-files-without-match |
.BR \-L ", " \-\^\-files-without-match |
236 |
Suppress normal output; instead print the name |
Suppress normal output; instead print the name |
237 |
of each input file from which no output would |
of each input file from which no output would |
244 |
would normally have been printed. The scanning will |
would normally have been printed. The scanning will |
245 |
stop on the first match. |
stop on the first match. |
246 |
.TP |
.TP |
247 |
|
.BI \-\^\-label= LABEL |
248 |
|
Displays input actually coming from standard input as input coming from file |
249 |
|
.I LABEL. |
250 |
|
This is especially useful for tools like zgrep, e.g. |
251 |
|
.B "gzip -cd foo.gz |grep --label=foo something" |
252 |
|
.TP |
253 |
|
.BR \-\^\-line-buffered |
254 |
|
Use line buffering, it can be a performance penalty. |
255 |
|
.TP |
256 |
.BI \-m " NUM" "\fR,\fP \-\^\-max-count=" NUM |
.BI \-m " NUM" "\fR,\fP \-\^\-max-count=" NUM |
257 |
Stop reading a file after |
Stop reading a file after |
258 |
.I NUM |
.I NUM |
307 |
.TP |
.TP |
308 |
.BR \-o ", " \-\^\-only-matching |
.BR \-o ", " \-\^\-only-matching |
309 |
Show only the part of a matching line that matches |
Show only the part of a matching line that matches |
310 |
.I PATTERN. |
.IR PATTERN . |
|
.TP |
|
|
.BI \-\^\-label= LABEL |
|
|
Displays input actually coming from standard input as input coming from file |
|
|
.I LABEL. |
|
|
This is especially useful for tools like zgrep, e.g. |
|
|
.B "gzip -cd foo.gz |grep --label=foo something" |
|
311 |
.TP |
.TP |
312 |
.BR \-\^\-line-buffered |
.BR \-P ", " \-\^\-perl-regexp |
313 |
Use line buffering, it can be a performance penalty. |
.RI "Interpret " PATTERN " as a Perl regular expression." |
314 |
.TP |
.TP |
315 |
.BR \-q ", " \-\^\-quiet ", " \-\^\-silent |
.BR \-q ", " \-\^\-quiet ", " \-\^\-silent |
316 |
Quiet; do not write anything to standard output. |
Quiet; do not write anything to standard output. |
328 |
.B "\-d recurse" |
.B "\-d recurse" |
329 |
option. |
option. |
330 |
.TP |
.TP |
|
.BR "\fR \fP \-\^\-include=" PATTERN |
|
|
Recurse in directories only searching file matching |
|
|
.I PATTERN. |
|
|
.TP |
|
|
.BR "\fR \fP \-\^\-exclude=" PATTERN |
|
|
Recurse in directories skip file matching |
|
|
.I PATTERN. |
|
|
.TP |
|
331 |
.BR \-s ", " \-\^\-no-messages |
.BR \-s ", " \-\^\-no-messages |
332 |
Suppress error messages about nonexistent or unreadable files. |
Suppress error messages about nonexistent or unreadable files. |
333 |
Portability note: unlike \s-1GNU\s0 |
Portability note: unlike \s-1GNU\s0 |