"Linux series", "Basic Edition", chapter fourth, the regular expression of Shell Foundation

Source: Internet
Author: User

Regular expressions for 4. shell Basics     4.1  Regular strings are a string of rules          4.1 grep             4.1.1  Format: grep [-cinrvabc]  ' word '  filename             4.1.2 -c //count, indicating number of rows              4.1.3 -i //Case insensitive              4.1.4 -n  //Display line number              4.1.5 -r  //traversing all subdirectories              4.1.6 -v  //take anti-            4.1.7  -a  //followed by numbers, filtering out rows that meet the requirements and the following n rows              4.1.8 -b  //the same, filtering out the rows that meet the requirements and the N rows above             4.1.9 -c   //Ibid, simultaneously filtering out the line that meets the requirements and the N rows              4.1.10  extension                  4.1.10.1  single quote,  single quotes are treated as a single string                  4.1.10.2  double quote, double quotes are treated as a single string, preventing wildcard expansion, but allowing variable expansion                 4.1.10.3   backticks, the inverted quotation marks are treated as strings and can include command columns


"Linux series", "Basic Edition", chapter fourth, the regular expression of Shell Foundation

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.