+++ /dev/null
-NAME\r
- pcregrep - a grep with Perl-compatible regular expressions.\r
-\r
-\r
-\r
-SYNOPSIS\r
- pcregrep [-Vchilnsvx] pattern [file] ...\r
-\r
-\r
-\r
-DESCRIPTION\r
- pcregrep searches files for character patterns, in the same\r
- way as other grep commands do, but it uses the PCRE regular\r
- expression library to support patterns that are compatible\r
- with the regular expressions of Perl 5. See pcre(3) for a\r
- full description of syntax and semantics.\r
-\r
- If no files are specified, pcregrep reads the standard\r
- input. By default, each line that matches the pattern is\r
- copied to the standard output, and if there is more than one\r
- file, the file name is printed before each line of output.\r
- However, there are options that can change how pcregrep\r
- behaves.\r
-\r
- Lines are limited to BUFSIZ characters. BUFSIZ is defined in\r
- <stdio.h>. The newline character is removed from the end of\r
- each line before it is matched against the pattern.\r
-\r
-\r
-\r
-OPTIONS\r
- -V Write the version number of the PCRE library being\r
- used to the standard error stream.\r
-\r
- -c Do not print individual lines; instead just print\r
- a count of the number of lines that would other-\r
- wise have been printed. If several files are\r
- given, a count is printed for each of them.\r
-\r
- -h Suppress printing of filenames when searching mul-\r
- tiple files.\r
-\r
- -i Ignore upper/lower case distinctions during com-\r
- parisons.\r
-\r
- -l Instead of printing lines from the files, just\r
- print the names of the files containing lines that\r
- would have been printed. Each file name is printed\r
- once, on a separate line.\r
-\r
- -n Precede each line by its line number in the file.\r
-\r
- -s Work silently, that is, display nothing except\r
- error messages. The exit status indicates whether\r
- any matches were found.\r
-\r
- -v Invert the sense of the match, so that lines which\r
- do not match the pattern are now the ones that are\r
- found.\r
-\r
- -x Force the pattern to be anchored (it must start\r
- matching at the beginning of the line) and in\r
- addition, require it to match the entire line.\r
- This is equivalent to having ^ and $ characters at\r
- the start and end of each alternative branch in\r
- the regular expression.\r
-\r
-\r
-\r
-SEE ALSO\r
- pcre(3), Perl 5 documentation\r
-\r
-\r
-\r
-\r
-\r
-DIAGNOSTICS\r
- Exit status is 0 if any matches were found, 1 if no matches\r
- were found, and 2 for syntax errors or inacessible files\r
- (even if matches were found).\r
-\r
-\r
-\r
-AUTHOR\r
- Philip Hazel <ph10@cam.ac.uk>\r
- Copyright (c) 1997-2000 University of Cambridge.\r
-\r