If an input file is a directory, use ACTION to process it. By default, ACTION is read, i.e., read directories just as if they were ordinary files. If ACTION is skip, silently skip directories. If ACTION is recurse, read all files under each directory, recursively, following symbolic lin...
-R, -r, --recursive Read all files under each directory, recursively; this is equivalent to the -d recurse option. Other Options --line-buffered Use line buffering on output. This can cause a performance penalty. --mmap If possible, use the mmap(2) system call to read input, instead ...
--exclude-dir=GLOB Skip any command-line directory with a name suffix that matches the pattern GLOB. When searching recursively, skip any subdirectory whose base name matches GLOB. Ignore any redundant trailing slashes in GLOB. -I Process a binary file as if it did not contain matching data...
If an input file is a directory, use ACTION to process it. By default, ACTION is read, which means that directories are read just as if they were ordinary files. If ACTION isskip, directories are silently skipped. If ACTION isrecurse, grep reads all files under each directory, recursively...
Read all files under each directory, recursively, following symbolic links only if they are on the command line. This is equivalent to the -d recurse option. 即,-r 选项指定递归读取所给目录下的所有文件,默认不处理符号链接文件,除非在命令行参数中提供了符号链接的文件名。
Read all files under each directory, recursively; this is equivalent to the -d recurse option. --include=PATTERN Recurse in directories only searching file matching PATTERN. --exclude=PATTERN Recurse in directories skip file matching PATTERN. ...
grep - print lines matching a patterngrep [OPTIONS] PATTERN [FILE...] grep [OPTIONS] [-e PATTERN | -f FILE] [FILE...]
Don't print lines longer than this limit in bytes. -m <NUM>, --max-count <NUM> Limit the number of matching lines per file searched to NUM. --max-depth <NUM> Limit the depth of directory traversal to NUM levels beyond the paths given. ...
Read all files under each directory, recursively; this is equivalent to the -d recurse option. --include=PATTERN Recurse in directories only searching file matching PATTERN. --exclude=PATTERN Recurse in directories skip file matching PATTERN. ...
grep用户指南说明书