Find files with matching content in Linux/Debian/Mac

Sometimes you have need to find all files with certain words in them.  If you’re on Linux/Debian/Mac, you can run a really simple command to find them!

That command is “grep”.

Here’s an example that recursively searches subfolders for “set groups node1”

grep -iR 'set groups node1' *

Here is the output:


Leave a Reply

There aren't any comments at the moment, be the first to start the discussion!