4 |
|
|
5 |
|
|
6 |
SYNOPSIS |
SYNOPSIS |
7 |
pcregrep [-Vchilnsvx] pattern [file] ... |
pcregrep [-Vcfhilnrsvx] pattern [file] ... |
8 |
|
|
9 |
|
|
10 |
|
|
37 |
wise have been printed. If several files are |
wise have been printed. If several files are |
38 |
given, a count is printed for each of them. |
given, a count is printed for each of them. |
39 |
|
|
40 |
|
-ffilename |
41 |
|
Read patterns from the file, one per line, and |
42 |
|
match all patterns against each line. There is a |
43 |
|
maximum of 100 patterns. Trailing white space is |
44 |
|
removed, and blank lines are ignored. An empty |
45 |
|
file contains no patterns and therefore matches |
46 |
|
nothing. |
47 |
|
|
48 |
-h Suppress printing of filenames when searching mul- |
-h Suppress printing of filenames when searching mul- |
49 |
tiple files. |
tiple files. |
50 |
|
|
52 |
parisons. |
parisons. |
53 |
|
|
54 |
-l Instead of printing lines from the files, just |
-l Instead of printing lines from the files, just |
55 |
|
|
56 |
print the names of the files containing lines that |
print the names of the files containing lines that |
57 |
would have been printed. Each file name is printed |
would have been printed. Each file name is printed |
58 |
once, on a separate line. |
once, on a separate line. |
59 |
|
|
60 |
-n Precede each line by its line number in the file. |
-n Precede each line by its line number in the file. |
61 |
|
|
62 |
|
-r If any file is a directory, recursively scan the |
63 |
|
files it contains. Without -r a directory is |
64 |
|
scanned as a normal file. |
65 |
|
|
66 |
-s Work silently, that is, display nothing except |
-s Work silently, that is, display nothing except |
67 |
error messages. The exit status indicates whether |
error messages. The exit status indicates whether |
68 |
any matches were found. |
any matches were found. |
96 |
|
|
97 |
AUTHOR |
AUTHOR |
98 |
Philip Hazel <ph10@cam.ac.uk> |
Philip Hazel <ph10@cam.ac.uk> |
|
Copyright (c) 1997-2000 University of Cambridge. |
|
99 |
|
|
100 |
|
Last updated: 15 August 2001 |
101 |
|
Copyright (c) 1997-2001 University of Cambridge. |