4-4 the grep search command for Linux

Source: Internet
Author: User

Search string Command grep

Command format: grep [option] ' string ' file name

#在文件当匹配符合条件的字符串

Options:

-I ignores case

-V excludes the specified string

The find command differs from the grep command

Find command: Searches the system for eligible file names, and if matching is required, wildcard matches are used. Wildcard characters are exact matches

grep command: Searches for eligible strings in a file, matches with regular expressions if required, and regular expressions that contain matches.

Search for file names using find

Data regular expression matching in search files

4-4 the grep search command for Linux

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.