| 157 |
.TP |
.TP |
| 158 |
\fB--exclude\fP=\fIpattern\fP |
\fB--exclude\fP=\fIpattern\fP |
| 159 |
When \fBpcregrep\fP is searching the files in a directory as a consequence of |
When \fBpcregrep\fP is searching the files in a directory as a consequence of |
| 160 |
the \fB-r\fP (recursive search) option, any files whose names match the pattern |
the \fB-r\fP (recursive search) option, any regular files whose names match the |
| 161 |
are excluded. The pattern is a PCRE regular expression. If a file name matches |
pattern are excluded (subdirectories are not excluded; they are searched |
| 162 |
both \fB--include\fP and \fB--exclude\fP, it is excluded. There is no short |
recursively). The pattern is a PCRE regular expression, and is matched against |
| 163 |
form for this option. |
the final component of the file name (not the entire path). If a file name |
| 164 |
|
matches both \fB--include\fP and \fB--exclude\fP, it is excluded. There is no |
| 165 |
|
short form for this option. |
| 166 |
.TP |
.TP |
| 167 |
\fB-F\fP, \fB--fixed-strings\fP |
\fB-F\fP, \fB--fixed-strings\fP |
| 168 |
Interpret each pattern as a list of fixed strings, separated by newlines, |
Interpret each pattern as a list of fixed strings, separated by newlines, |
| 214 |
.TP |
.TP |
| 215 |
\fB--include\fP=\fIpattern\fP |
\fB--include\fP=\fIpattern\fP |
| 216 |
When \fBpcregrep\fP is searching the files in a directory as a consequence of |
When \fBpcregrep\fP is searching the files in a directory as a consequence of |
| 217 |
the \fB-r\fP (recursive search) option, only those files whose names match the |
the \fB-r\fP (recursive search) option, only those regular files whose names |
| 218 |
pattern are included. The pattern is a PCRE regular expression. If a file name |
match the pattern are included (but subdirectories are always included and |
| 219 |
matches both \fB--include\fP and \fB--exclude\fP, it is excluded. There is no |
searched recursively). The pattern is a PCRE regular expression, and is matched |
| 220 |
short form for this option. |
against the final component of the file name (not the entire path). If a file |
| 221 |
|
name matches both \fB--include\fP and \fB--exclude\fP, it is excluded. There is |
| 222 |
|
no short form for this option. |
| 223 |
.TP |
.TP |
| 224 |
\fB-L\fP, \fB--files-without-match\fP |
\fB-L\fP, \fB--files-without-match\fP |
| 225 |
Instead of outputting lines from the files, just output the names of the files |
Instead of outputting lines from the files, just output the names of the files |
| 438 |
.rs |
.rs |
| 439 |
.sp |
.sp |
| 440 |
.nf |
.nf |
| 441 |
Last updated: 17 December 2007 |
Last updated: 07 March 2008 |
| 442 |
Copyright (c) 1997-2007 University of Cambridge. |
Copyright (c) 1997-2008 University of Cambridge. |
| 443 |
.fi |
.fi |