⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgrep.1

📁 最新apache的源代码
💻 1
字号:
.TH PGREP 1.SH NAMEpgrep - 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 othergrep commands do, but it uses the PCRE regular expression library to supportpatterns 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 ifthere is more than one file, the file name is printed before each line ofoutput. 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 matchedagainst the pattern..SH OPTIONS.TP 10\fB-V\fRWrite the version number of the PCRE library being used to the standard errorstream..TP\fB-c\fRDo not print individual lines; instead just print a count of the number oflines that would otherwise have been printed. If several files are given, acount is printed for each of them..TP\fB-h\fRSuppress printing of filenames when searching multiple files..TP\fB-i\fRIgnore upper/lower case distinctions during comparisons..TP\fB-l\fRInstead of printing lines from the files, just print the names of the filescontaining lines that would have been printed. Each file name is printedonce, on a separate line..TP\fB-n\fRPrecede each line by its line number in the file..TP\fB-s\fRWork silently, that is, display nothing except error messages.The exit status indicates whether any matches were found..TP\fB-v\fRInvert the sense of the match, so that lines which do \fInot\fR match thepattern are now the ones that are found..TP\fB-x\fRForce the pattern to be anchored (it must start matching at the beginning ofthe line) and in addition, require it to match the entire line. This isequivalent to having ^ and $ characters at the start and end of eachalternative branch in the regular expression..SH SEE ALSO\fBpcre(3)\fR, Perl 5 documentation.SH DIAGNOSTICSExit status is 0 if any matches were found, 1 if no matches were found, and 2for syntax errors or inacessible files (even if matches were found)..SH AUTHORPhilip Hazel <ph10@cam.ac.uk>.brCopyright (c) 1997-1999 University of Cambridge.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -