diff options
author | Ryan Bloom <rbb@apache.org> | 2000-05-06 01:28:20 +0200 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-05-06 01:28:20 +0200 |
commit | 807e5aed4dd9939a111fa8d1629069d5d1363212 (patch) | |
tree | 2b9221f97c29a749c5481ef4fd88910ab8b0b414 /srclib/pcre/doc/pgrep.1 | |
parent | Replace hsregex with PCRE. The PCRE library is always used in 2.0, (diff) | |
download | apache2-807e5aed4dd9939a111fa8d1629069d5d1363212.tar.xz apache2-807e5aed4dd9939a111fa8d1629069d5d1363212.zip |
Initial revision
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85154 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'srclib/pcre/doc/pgrep.1')
-rw-r--r-- | srclib/pcre/doc/pgrep.1 | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/srclib/pcre/doc/pgrep.1 b/srclib/pcre/doc/pgrep.1 new file mode 100644 index 0000000000..d9e9b575e0 --- /dev/null +++ b/srclib/pcre/doc/pgrep.1 @@ -0,0 +1,76 @@ +.TH PGREP 1 +.SH NAME +pgrep - a grep with Perl-compatible regular expressions. +.SH SYNOPSIS +.B pgrep [-Vchilnsvx] pattern [file] ... + + +.SH DESCRIPTION +\fBpgrep\fR searches files for character patterns, in the same way as other +grep commands do, but it uses the PCRE regular expression library to support +patterns that are compatible with the regular expressions of Perl 5. See +\fBpcre(3)\fR for a full description of syntax and semantics. + +If no files are specified, \fBpgrep\fR reads the standard input. By default, +each line that matches the pattern is copied to the standard output, and if +there is more than one file, the file name is printed before each line of +output. However, there are options that can change how \fBpgrep\fR behaves. + +Lines are limited to BUFSIZ characters. BUFSIZ is defined in \fB<stdio.h>\fR. +The newline character is removed from the end of each line before it is matched +against the pattern. + + +.SH OPTIONS +.TP 10 +\fB-V\fR +Write the version number of the PCRE library being used to the standard error +stream. +.TP +\fB-c\fR +Do not print individual lines; instead just print a count of the number of +lines that would otherwise have been printed. If several files are given, a +count is printed for each of them. +.TP +\fB-h\fR +Suppress printing of filenames when searching multiple files. +.TP +\fB-i\fR +Ignore upper/lower case distinctions during comparisons. +.TP +\fB-l\fR +Instead of printing lines from the files, just print the names of the files +containing lines that would have been printed. Each file name is printed +once, on a separate line. +.TP +\fB-n\fR +Precede each line by its line number in the file. +.TP +\fB-s\fR +Work silently, that is, display nothing except error messages. +The exit status indicates whether any matches were found. +.TP +\fB-v\fR +Invert the sense of the match, so that lines which do \fInot\fR match the +pattern are now the ones that are found. +.TP +\fB-x\fR +Force the pattern to be anchored (it must start matching at the beginning of +the line) and in addition, require it to match the entire line. This is +equivalent to having ^ and $ characters at the start and end of each +alternative branch in the regular expression. + + +.SH SEE ALSO +\fBpcre(3)\fR, Perl 5 documentation + + +.SH DIAGNOSTICS +Exit status is 0 if any matches were found, 1 if no matches were found, and 2 +for syntax errors or inacessible files (even if matches were found). + + +.SH AUTHOR +Philip Hazel <ph10@cam.ac.uk> +.br +Copyright (c) 1997-1999 University of Cambridge. |