CocoaEngineering
FORMULAv3.12

grep for macOS

GNU grep, egrep and fgrep

Installation on macOS (Apple Silicon & Intel)

brew install grep

Package Metadata

Identifiergrep
Current Version3.12
Tap Repositoryhomebrew/core
LicenseGPL-3.0-or-later
Upstream Homepagehttps://www.gnu.org/software/grep/
Last Verified2026-11-26T14:43:31Z

Runtime Dependencies (1)

pcre2

Build Dependencies (1)

pkgconf

Engineering Caveats

All commands have been installed with the prefix "g".
If you need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
  PATH="$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$PATH"
Browse macOS Packages A–Z