12 Answered Questions for the topic grep

07/05/19

#### How can I use grep to show just filenames on Linux?

How can I use grep to show just file-names (no in-line matches) on Linux? I am usually using something like: find . -iname "*php" -exec grep -H myString {} \\; How can I just get the... more

07/03/19

#### How can I use grep to show just filenames on Linux?

How can I use grep to show just file-names (no in-line matches) on Linux? I am usually using something like: find . -iname "*php" -exec grep -H myString {} \\; How can I just get the... more

05/26/19

#### grep a tab in UNIX?

How do I grep tab (\ ) in files on the Unix platform?

05/26/19

#### grep, but only certain file extensions?

I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types. I want to grep just .h and .cpp for now, but maybe a few others in... more

05/25/19

#### How can I exclude directories from grep -R?

I want to traverse all subdirectories, except the "node_modules" directory.

05/23/19

#### How do I grep recursively?

How do I recursively grep all directories and subdirectories? find . | xargs grep "texthere" *

05/14/19

#### How can I exclude directories from grep -R?

I want to traverse all subdirectories, except the "node_modules" directory.

05/13/19

#### grep, but only certain file extensions?

I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types. I want to grep just .h and .cpp for now, but maybe a few others in... more

05/02/19

#### How to 'grep' a continuous stream?

Is that possible to use grep on a continuous stream? What I mean is sort of a tail -f <file> command, but with grep on the output in order to keep only the lines that interest... more

04/20/19

#### How to grep a string in a directory and all its subdirectories' files in LINUX?

How to grep a string or a text in a directory and all its subdirectories'files in LINUX ??

03/15/19

#### How do I grep recursively?

How do I recursively grep all directories and subdirectories? find . | xargs grep "texthere" *

03/14/19

#### grep, but only certain file extensions?

I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types. I want to grep just .h and .cpp for now, but maybe a few others in... more

## Still looking for help? Get the right answer, fast.

Get a free answer to a quick problem.
Most questions answered within 4 hours.

#### OR

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.