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
Text Processing tool grep, regular expressions in the Linux learning process is prone to confusion and obstacles in the place, here to share some of the experience of this content.
grep Global search REgular expression and Print out of the
How do I use the or,and,not operator in the grep command of Linux?In fact, in the grep command, there are equivalent options for the OR and not operators, but there is no grep and this operator. However, you can use patterns to simulate and
A little touch with Linux will know that there are three very powerful text processing tools, that is grep, sed and awk, you must have heard of it.Linux Text Processing Three musketeers:grep, Egrep, Fgrep: Text Filter tool (pattern: pattern);grep:
All support Regular expression1. Find-name Search by name-perm Based on Permissions lookup-ctime–n +m lookup based on creation time,-n days, +n n days ago-mtime–n +n Last Modified time-exec command {} \; Execute command for each record-ok command {}\
First, Introductiongrep (abbreviated from globally search a Regular expression and print) is a powerful text-search tool that can use regular expressions to search for text and print matching lines. The grep family of Unix includes grep, Egrep, and
Recently has been studying the shell script this piece, just idle down the whole under their own on the better information in some examples, the following is my brother of the birds in the regular expression inside the inside of the comparison of
1, check the file under a certain path.Search for "*.log" files under/etcFind/etc-name "*.log"2, expand, List all files under a path, including subdirectories.Find/etc-name "*"3. Look for all files that contain the "Hello Abcserver" string under a
Analysis:
Kill-15 ' Ps-eaf | Grep-v grep | Grep-i NodeManager | awk ' {print $} '
The meaning of this line of code
1.
About grep:
The grep full name is global Regular Expression Print, which represents the global regular expression version, and
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.