2 |
.SH NAME |
.SH NAME |
3 |
pcregrep - a grep with Perl-compatible regular expressions. |
pcregrep - a grep with Perl-compatible regular expressions. |
4 |
.SH SYNOPSIS |
.SH SYNOPSIS |
5 |
.B pcregrep [-Vchilnsvx] pattern [file] ... |
.B pcregrep [-Vcfhilnrsvx] pattern [file] ... |
6 |
|
|
7 |
|
|
8 |
.SH DESCRIPTION |
.SH DESCRIPTION |
32 |
lines that would otherwise have been printed. If several files are given, a |
lines that would otherwise have been printed. If several files are given, a |
33 |
count is printed for each of them. |
count is printed for each of them. |
34 |
.TP |
.TP |
35 |
|
\fB-f\fIfilename\fR |
36 |
|
Read patterns from the file, one per line, and match all patterns against each |
37 |
|
line. There is a maximum of 100 patterns. Trailing white space is removed, and |
38 |
|
blank lines are ignored. An empty file contains no patterns and therefore |
39 |
|
matches nothing. |
40 |
|
.TP |
41 |
\fB-h\fR |
\fB-h\fR |
42 |
Suppress printing of filenames when searching multiple files. |
Suppress printing of filenames when searching multiple files. |
43 |
.TP |
.TP |
52 |
\fB-n\fR |
\fB-n\fR |
53 |
Precede each line by its line number in the file. |
Precede each line by its line number in the file. |
54 |
.TP |
.TP |
55 |
|
\fB-r\fR |
56 |
|
If any file is a directory, recursively scan the files it contains. Without |
57 |
|
\fB-r\fR a directory is scanned as a normal file. |
58 |
|
.TP |
59 |
\fB-s\fR |
\fB-s\fR |
60 |
Work silently, that is, display nothing except error messages. |
Work silently, that is, display nothing except error messages. |
61 |
The exit status indicates whether any matches were found. |
The exit status indicates whether any matches were found. |
82 |
|
|
83 |
.SH AUTHOR |
.SH AUTHOR |
84 |
Philip Hazel <ph10@cam.ac.uk> |
Philip Hazel <ph10@cam.ac.uk> |
85 |
|
|
86 |
|
Last updated: 15 August 2001 |
87 |
.br |
.br |
88 |
Copyright (c) 1997-2000 University of Cambridge. |
Copyright (c) 1997-2001 University of Cambridge. |