Quote:
The original post is published by "net player:
For example, in Linux, you can find grep, egrep, and fgrep programs. The differences are roughly as follows:
* Grep:In traditional grep programs, only sentences that conform to the RE string are output without parameters. Common parameters are as follows:-V: reverse expression. Only sentences without re strin
' ^# '
' Open Source is ' a good mechanism to develop programs.
Apple is my favorite food.
Football game isn't use feet only.
This is dress doesn ' t fit me.
............
However, egrep and extended special symbols are used to support extended regular Expressions | , it will be much more convenient.
Note GREP only supports the underlying expression, and Egrep s
The feeling speaks very detailed, instantly understood the grep, regular.From:hereBrief introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes
Brief introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes grep, Egrep, and Fgrep. Egrep
Tag: Class not returns LIN filename ASC sof open matchTransferred from: http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2856896.htmlBrief introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes
Brief introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes grep, Egrep, and Fgrep. Egrep
string (such as matching ' magic ', not ' magical '),
Grep-c number pattern files: matching contexts show [number] rows,
grep pattern1 | PATTERN2 files: Displays rows that match pattern1 or pattern2.
grep pattern1 Files | grep pattern2: Displays rows that match both PATTERN1 and pattern2. Here are some special symbols
regular expression search files?Three, a strong combination to find the file is definitely the Find command, man, found that find is actually supporting the regular expression. Command:Find. -regextype "Egrep"-regex "\./1\.2\.3\. (2[5-9]| [3-7] [0-9]|8[0-3])/sceneserver\.log\.14 (2[2-9]|3) |11|120[1-9]). *-print0 | xargs-0 grep ' meritorious acquisition ' >> Tmp.logNote that there are: 1. Note the differen
1. grep Introduction
Grep (Global Search Regular Expression (re) and print out the line, full search for regular expressions and print out rows) is a powerful text search tool,
It can use regular expressions to search for text and print matching rows. UNIX grep families include grep,
. bash_profile file:
Alias Grep=grep--color=auto
After each grep search, the matching effect is highlighted automatically.
The ' search string ' is a regular expression, and note that in order to avoid the effect of the shell's metacharacters on the regular expression, enclose it in single quotes ("") and never enclose it in double quotes ("") or not.
Regular
users on the current system;Answer: egrep ' ^\650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/42/wKiom1XfPSqz6lI4AACQQXuSyc0904.jpg "title=" Grep5.png "style=" Float:none; "alt=" wkiom1xfpsqz6li4aacqqxusyc0904.jpg "/>6 Find a word in the/etc/rc.d/init.d/functions file (the middle of the word can be underlined) followed by a set of parentheses line;Answer: grep-e--color=auto ' \650) this.wid
Grep output highlights, grep output highlights
After the grep command is executed, the "-- color = auto" parameter can be added to the output color of the terminal.
The other two methods are as follows:
1. Set environment variables:
Export GREP_OPTIONS = "-- color = auto"
2. Modify. bashrc
Alias grep and set it with
Linux Command grep, linux Command grep
Grep command: print the line matching a style in the file
Format: grep [options] pattern [filles]
Options):
Options for style control:
-E: Extended grep, egrep
-F regex-file: Get the regular
Grep, regular expression, and grep Regular Expression
Grep: a text search tool that checks the row-by-row matching of the target file based on the user-specified "Mode": prints the matched rows.
Pattern: filtering condition for writing regular expressions.
Regular Expression (REGEXP): A pattern written by a special character or text character. Some of these chara
Use of GREP commands in Linux
grep (Global search Regular expression (RE) and print out of the line, a comprehensive search for regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching rows. The grep family of Unix includes grep
Brief introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes grep, Egrep, and Fgrep. Egrep
Brief introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes grep, Egrep, and Fgrep. Egrep
Introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes grep, Egrep, and Fgrep. Egrep and F
Brief introductiongrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching lines.The grep family of Unix includes grep, Egrep, and Fgrep. Egrep
Http://man.chinaunix.net/newsoft/grep/open.htm
1 grep Introduction
grep (Global search Regular expression (RE) and print out of the line, a comprehensive search for regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the matching rows. The g
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.