Grep command Chinese manual (info grep translation), grep Chinese manual
1. This article is the info man translation, which is basically translated according to the original text. There are several unavailable options that are not translated, but
Linux comes with the GNU grep command tool, which supports extended regular expression extended regular expressions, and GNU grep is the default for all Linux systems. The Grep command is used to search for any information that is stored on your
Three minutes to learn about regular expressions in the grep command
In Linux and Unix-like operating systems, how does one use the grep command with a regular expression?
Linux provides the GNU grep tool that supports extended regular expressions.
Quick grasp of grep commands and Regular Expressions
The Linux system comes with the GNU grep tool that supports extended regular expressions. grep is installed by default in all Linux releases. The grep command is used to retrieve text information
In Linux, Unix-like systems, how do I use the regular expression of the Grep command?Linux comes with the GNU grep Command Tool, which supports extended regular expressions (extended regular expressions), and GNU grep is default on all Linux systems.
grep command format: grep [-ACINV] [--color=auto] ' Find string ' filename-A converts binary files to text file-C calculates the number of ' find string ' found-I ignores case differences, so case is considered the same-N Output line number-V
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
using the grep ' word1|word2 ' filename is not the right command.
You should use the following command:
1,grep-e ' word1|word2 ' filename2,egrep ' word1|word2 ' filename3,grep ' word1/|word2 ' filenameWhy do I need to add-e, about grep and
For example:
In the current directory, find the file with the suffix. C containing the hello string:
Find.-Name "*. c" | xargs grep-h "hello"
Appendix: (transfer)
1. grep Introduction
Grep (Global Search Regular Expression (re) and print out the
The 20 good habits to be used in Unix are:
1) create a directory tree in a single command.
2) change the path. Do not move the archive.
3) combine commands with control operators.
4) exercise caution when referencing variables.
5) Use escape
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.