GNU grep, egrep and fgrep

Current versions

grep requires the following formulae to be installed:
xz 5.2.3 General-purpose data compression with high compression ratio
pkg-config 0.29.2 Manage compile and link flags for libraries
pcre 8.41 Perl compatible regular expressions library

Reverse dependencies

The following formula requires grep to be installed:
modules 4.1.1 Dynamic modification of a user's environment via modulefiles

Recent formula history

ilovezfs Use “squiggly” heredocs.
ilovezfs grep 3.1
ilovezfs grep: swap GNU url and mirror.
Mike McQuaid grep: import homebrew/dupes into core.

Formula code at GitHub