Tag:grep

  • Deep understanding of grep command in Linux

    Time:2021-5-2

    introduce Grep command is a powerful text search tool in Linux system. It can use regular expression to search text and print out the matching lines. The full name of grep is global regular expression print, which means the global regular expression version. Its permission is for all users. Grep [- acinv] [– color = […]

  • Introduction to grep basic command of Linux text filtering (5)

    Time:2021-4-4

    In Linux, we often need to filter the text or output content. The most common filtering command is grep grep [OPTIONS] PATTERN [FILE…] Grep retrieves each input line by line, and outputs this line if the input line contains pattern pattern. The pattern here is a regular expression (refer to the previous article, which will […]

  • Grep and regular expression

    Time:2020-12-8

    A regular expression is just a representation that can be processed by the tool as long as it supports it. VIM, grep, awk and sed all support regular expressions. It is because they support regular expressions that they are powerful. In the companies that used to work, because the companies are web-based service-oriented websites (nginx) […]

  • Linux regular expression grep instance analysis

    Time:2020-8-23

    In many technical fields (such as: natural language processing, data storage, etc.), regular expression can easily extract the information we want, so regular expression is a very important knowledge point! 1、 Concept Regular expression is a pattern used to describe a set of string characteristics to match a specific string. Through special characters and ordinary […]

  • Solution to the problem of unsuccessful matching numbers with “\ \ D” in grep

    Time:2020-8-18

    First of all, regular expressions are divided into three categories (man grep can see that they are basic regexs, extended regexs, Perl regexs) Regular expression: in computer science, a single string used to describe or match a series of strings that conform to a certain syntactic rule. In many text editors or other tools, regular […]

  • Solution to the problem of unsuccessful matching numbers with “\ \ D” in grep

    Time:2020-8-18

    First of all, regular expressions are divided into three categories (man grep can see that they are basic regexs, extended regexs, Perl regexs) Regular expression: in computer science, a single string used to describe or match a series of strings that conform to a certain syntactic rule. In many text editors or other tools, regular […]

  • How to use grep and fgrep in Linux

    Time:2020-7-2

    grep Grep (global search regular expression (RE) and print out the line) is a powerful text search tool. It can use regular expressions to search text and print the matching lines. The grep family of UNIX includes grep, egrep and fgrep. The command of egrep and fgrep is only slightly different from that of grep. […]

  • Using skills of grep command in Linux

    Time:2020-5-14

    The grep command is used to search for text, or to search for a file with a given string or word in a line from a given file. In general, grep displays the rows that match. Use grep to search for lines of text that include one or more regular expressions that match, and then […]

  • The regular expression and usage of grep in Linux

    Time:2020-4-20

    Keep in mind that regular expressions are different from wildcards in meaning Regular expression is only a description of string. Only when it is combined with tools supporting regular expression can string processing be performed. This paper takes grep as an example to explain regular expressions. Grep command Function: input the search string in each […]

  • Using grep command to search words and count the number of matching lines in Linux

    Time:2020-4-20

    Use the grep command to search for multiple wordsTo use the grep command to search for multiple strings or words, what should we do? For example, I want to find word1, word2, Word3 and other words in the / path / to / file file file. How can I command grep to find these words? […]

  • Fully analyze the usage of regular expression in grep command of Linux

    Time:2020-4-17

    Linux comes with the GNU grep command tool, which supports extended regular expressions, and GNU grep is available by default in all Linux systems. The grep command is used to search for and locate any information stored on your server or workstation. regular expression A regular expression is a pattern used to match each line […]

  • Using grep command to search file name and content in Linux

    Time:2020-4-16

    Search and display file names from filesWhen you search from more than one file, it displays the file name by default: Copy code The code is as follows: Grep “word” filenamegrep root /etc/* Sample output: Copy code The code is as follows: /etc/bash.bashrc: See “man sudo_root” for details./etc/crontab:17 * * * * root cd / […]