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