Skip to main content
added 328 characters in body
Source Link
nohillside
  • 104.4k
  • 42
  • 222
  • 275

GNU grep is not part of coreutils. To install, run

brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> Caveats
TheAll commandcommands hashave been installed with the prefix "g".
If you doneed notto wantuse thethese prefixcommands with their normal names, installyou
can usingadd thea "with-default-names""gnubin" option.directory to your PATH from your bashrc like:
  PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"

So after installing you can either use ggrep, gegrep and gfgrep; or extend PATH as shown above to use grep etc. The second option may confuse some macOS specific scripts though in case the options differ.

GNU grep is not part of coreutils. To install, run

brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> Caveats
The command has been installed with the prefix "g".
If you do not want the prefix, install using the "with-default-names" option.

GNU grep is not part of coreutils. To install, run

brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> 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="/usr/local/opt/grep/libexec/gnubin:$PATH"

So after installing you can either use ggrep, gegrep and gfgrep; or extend PATH as shown above to use grep etc. The second option may confuse some macOS specific scripts though in case the options differ.

GNU grep is not part of coreutils. To install, run

brew tap homebrew/dupes; brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> Caveats
The command has been installed with the prefix "g".
If you do not want the prefix, install using the "with-default-names" option.

GNU grep is not part of coreutils. To install, run

brew tap homebrew/dupes; brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> Caveats
The command has been installed with the prefix "g".
If you do not want the prefix, install using the "with-default-names" option.

GNU grep is not part of coreutils. To install, run

brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> Caveats
The command has been installed with the prefix "g".
If you do not want the prefix, install using the "with-default-names" option.
added 236 characters in body
Source Link
nohillside
  • 104.4k
  • 42
  • 222
  • 275

GNU grep is not part of coreutils. To install, run

brew tap homebrew/dupes; brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> Caveats
The command has been installed with the prefix "g".
If you do not want the prefix, install using the "with-default-names" option.

GNU grep is not part of coreutils. To install, run

brew tap homebrew/dupes; brew install grep

GNU grep is not part of coreutils. To install, run

brew tap homebrew/dupes; brew install grep

As with coreutils, this doesn't automatically replace the existing grep

==> Caveats
The command has been installed with the prefix "g".
If you do not want the prefix, install using the "with-default-names" option.
Source Link
nohillside
  • 104.4k
  • 42
  • 222
  • 275
Loading