1. The role of the grep command in Linux is a powerful text search tool that can use regular expressions to search for text and print matching rows. The grep full name is global Regular Expression Print, which represents the global regular
1.grep 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
Content Lookup (Recursive)
grep/etc/httpd/modules/-lr ' 51ditu ' *
File name lookup (recursive, not suitable to find modules)
find/etc/httpd/-name httpd.conf
Reference:
The grep command searches for patterns specified by the pattern parameter and
Function Description: Search for matching strings in the file.
Syntax:Grep [-Abcefghhillnqrsvvwxy] [-A ] [-B ] [-C ] [-D ] [-E ] [-F ] [-- help] [template style] [file or folder...]
Note:GrepCommand is used to search for files whose content
Function Description: Search for matching strings in the file.
Syntax:Grep [-Abcefghhillnqrsvvwxy] [-A ] [-B ] [-C ] [-D ] [-E ] [-F ] [-- help] [template style] [file or folder...]
Note:GrepCommand is used to search for files whose content
The grep command in a Linux system is a powerful text search tool that uses regular expressions to search for text and print matching lines. The grep full name is global Regular expression Print, which represents the globally regular expression
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.
Feature Description: Find files that match the conditions of the strings.Language France:grep [-abcefghhillnqrsvvwxy][-a][-B][-C][-d][-e][-f][--help][template style [file or folder ...]Supplemental Note: Thegrep directive is used to find files that
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
The grep command in a Linux system is a powerful text search tool that uses regular expressions to search for text and print matching lines. The grep full name is global Regular expression Print, which represents the globally regular expression
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.