The grep egrep for Linux text processing

Source: Internet
Author: User

The Three Musketeers of text processing under Linux


The first sword grep, Egrep, Fgrep: Text Search tool; Search operations on given text based on "pattern";

The second Sword Sed:stream editor, stream editor, line editing tools, text editing tools;

Third Sword Awk:gnu awk, text formatting tool; Text Report Generator;


Today, we mainly explain the first sword:

grep family:

grep: Supports the use of basic regular expressions;

Egrep: Supports the use of extended regular expressions;

grep: The use of regular expressions is not supported;

grep command:

Function: Text Search tool, according to the user specified "pattern (filter)" to match the target text line by row to check, print out the qualifying line;

Pattern: The filter condition written by the text character and the regular expression meta-character;



This article is from the "Li Wenming blog" blog, make sure to keep this source http://liwenming18.blog.51cto.com/11068518/1748919

The grep egrep for Linux text processing

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.