How to install GNU grep on Mac OS?
21:36 07 Dec 2019

I need to install GNU grep on my Mac but I'm finding some difficulties.

I tried doing this:

brew install grep --with-default-names

But this is no longer an option since Homebrew removed --with-default-names.

Can anyone provide a solution for this?

macos grep homebrew