About 51 results
Open links in new tab
  1. linux - What is the point of "grep -q" - Stack Overflow

    May 16, 2019 · Moreover, this is a lot faster than a regular grep invocation, since it can exit immediately when the first match is found, rather than needing to unconditionally read (and write) to the end of file.

  2. How do I recursively grep all directories and subdirectories?

    Feb 16, 2016 · If you find yourself frequently using grep to do recursive searches (especially if you manually do a lot of file/directory exlusions), you may find ack (a very programmer-friendly grep …

  3. regex - Using the star sign in grep - Stack Overflow

    Jul 6, 2016 · grep * means "0 or more", and grep is greedy by default. Note that in grep basic regular expressions the metacharacters ?, + , { , | , ( , and ) lose their special meaning.

  4. Negative matching using grep (match lines that do not contain foo ...

    How do I match all lines not matching a particular pattern using grep? I tried this: grep '[^foo]'

  5. How to perform grep operation on all files in a directory?

    437 Working with xenserver, and I want to perform a command on each file that is in a directory, grep ping some stuff out of the output of the command and appending it in a file. I'm clear on the …

  6. linux - Grep command with multiple patterns - Stack Overflow

    Dec 12, 2019 · Hi i am currently use this to grep: $ grep -nri --exclude-dir=DELIVERY_REL "xxxxxx\.h" --colour --include=*.{c,h} I am trying to fine tune the search results of my grep to include multiple …

  7. PowerShell equivalent to grep -f - Stack Overflow

    I'm looking for the PowerShell equivalent to grep --file=filename. If you don't know grep, filename is a text file where each line has a regular expression pattern you want to match. Maybe I'm mis...

  8. unix - Using grep for multiple search patterns - Stack Overflow

    Apr 28, 2014 · Using grep for multiple search patterns Asked 13 years, 4 months ago Modified 2 years, 6 months ago Viewed 113k times

  9. How can I use grep to find a word inside a folder?

    Nov 8, 2010 · 166 grep -nr string my_directory Additional notes: this satisfies the syntax grep [options] string filename because in Unix-like systems, a directory is a kind of file (there is a term "regular file" …

  10. linux - grep between two files - Stack Overflow

    May 10, 2016 · I have used these commands previously to compare between different files and they worked. grep -f file1 file2 grep -Fwf file1 file2 When i tried to grep whatever that's not matching, i get …