Linux Command Encyclopedia document editing: Rgrep

Source: Internet
Author: User
Keywords Linux Command Encyclopedia Rgrep document editing
Tags aliyun command encyclopedia directory displays document document editing file find

Function Description: Recursively find strings that match the criteria in the file.

Grammar: rgrep&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [-? bcdfhhilnnrv][-r< template style >][-W< column length >][-x< extension >][--help][--version][template style [file or directory ...]

Supplemental Note: The function of the RGREP directive is similar to the GREP directive, which finds the file with the specified template style, and if the content of a file is found to fit the specified template style, the preset rgrep instruction displays the column that contains the template style.

Parameters:
-? Displays a description of the template style and example.
-B ignores binary data.
-C calculates the number of columns that conform to the template style.
-D debug mode, which lists only the directory listings for the instruction search and does not read the file contents.
-F When a symbolic connection is encountered, the Rgrep preset ignores the unhandled, and after this argument, the rgrep instruction reads the contents of the original file that the connection points to.
-H specifically marks the string that conforms to the template style.
-h lists only the strings that conform to the template style, not the contents of the entire column.
-I ignores the difference in case of characters.
-l lists the file names for which the contents of the file conform to the specified template style.
-N Indicates the number of columns in the column before displaying the column that conforms to the Fang Ben style.
-n do not handle recursively.
-R recursive processing of all files and subdirectories in the specified directory.
-r< template Style > The effect of this parameter is similar to the specified "-r" parameter, but only the main file that conforms to the template style file name.
-V Reverse lookup.
-w< column length > limit the number of characters that must be in the column that matches the template-style string.
-x< extension > Only files that match the name of the file that matches the specified extension.
--help online Help.
--version Displays version information.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.