📄 googrep.1
字号:
.TH googrep 1 "14 February 2007".SH NAMEgoogrep - search text using a Google-style pattern.SH SYNOPSIS.B googrep.RB [ -cHhILlnqsv ].I pattern.RI [ file.IR ... ].SH DESCRIPTION.PP.I Googrepis a Unix-style grep program that uses Google-style search syntax..PPThe essence of Google-style search is:.TP-A search pattern has one or more search terms..TP-A search term is either a word or a quoted phrase..TP-Search terms are automatically ANDed together..TP-Words in the pattern match words in the text, not partial words..TP-Matching is case-insensitive..PPNote that the entire search pattern is always a single Unix command-lineargument, which generally means you pass it to the program in a quoted string.If your search terms include a multi-word string, then you willbe passing a quoted string inside a quoted string.It is important to pay attention to the two different layers of quoting!.SH OPTIONS.TP.B -cCount.Suppress normal output; instead show a count of matching linesfor each input file. With the -v option (see below), countnon-matching lines..TP.B -HWith filename.Show the filename for each match, even if there's only one file..TP.B -hNo filename.Don't show the filename, even if there's more than one file..TP.B -IDon't ignore case.Other Unix grep programs default to case-sensitive matching anduse a lower-case -i flag to indicate case-insensitive matching.Since we're imitating Google, which is always case-insensitive,we do the reverse: case-insensitive is the default, and thisflag makes it case-sensitive..TP.B -LFiles without matches.Suppress normal output; instead show the name of each inputfile from which no output would normally have been shown..TP.B -lFiles with matches.Suppress normal output; instead show the name of each inputfile from which output would normally have been shown..TP.B -nLine number.Prefix each line of output with the line number within its input file..TP.B -qQuiet.Suppress normal output.The only result is the program's exit status..TP.B -sNo messages.Suppress error messages about nonexistent or unreadable files..TP.B -vInvert match.Invert the sense of matching, to show non-matching lines..SH "EXIT STATUS"Exit status is 0 if matches were found, 1 if no matches were found.The -v flag inverts this.Exit status is 2 if there were errors..SH "SEE ALSO"grep(1), fgrep(1), egrep(1).SH AUTHORCopyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -