grep egrep usage and its corresponding regular expressionOne, grep, Egrep commandIn this paper, the basic parameters and the usage format and methods of grep egrep fgrep command and regular expression in Linux system are mainly introduced.Definition
Grep, egrep, and regular expressions
All files in Linux: text files are critical and commonly used for text file search.
Linux text search tools: grep, egrep, fgrep, and text search are used to search text files.
File name search is a bash feature
1. grep Introduction
Grep (Global Search regular expression_r (re) and print out the line, fully search for regular expressions and print rows) is a powerful text search tool, it can use regular expressions to search for text and print matching
Detailed description of grep, egrep, and fgrep usage of text search commands
I. Learning Objectives
Understand and be familiar with grep, egrep, and fgrep commands.
Ii. Learning Content
1. Meaning and usage format of grep, egrep, and fgrep commands:
Egrep function description: the egrep command and the grep command have the-E flag, except for the difference in the error message and the use of the message and the function of the-s flag. Use the egrep command to search for one or more files. the
for people who are just touching, regular expression learning and using a painful and confusing thing, but as long as there is enthusiasm, will find very interesting. Then please let us play the spirit, come up with their own interests and passion
1. Introduction to Grepgrep (Global search regular Expression_r (RE) and print out of the line, full search of regular expressions and print out the lines) is a powerful text search tool that uses regular expressions to search for text, and print
1. grep
(1) grep Introduction
Grep: global search Regular Expression and print out the line. Global Search for regular expressions and output suitable rows.
Grep is a powerful text search tool that performs row-by-row search on the target file
1.1, the basic definition: www.2cto.comgrep (Global search regular RE) and print out of the line, full search of regular expressions and print out the lines, is a powerful text search tool that can only use basic regular expressions to search for
Linux basic command grep egrep fgrep usage and regular expression 1. grep, egrep, and fgrep commands this article mainly introduces the basic parameters and usage formats of grep egrep fgrep commands and regular expressions in linux, method. (Note:
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.