DEV Community

Prathamesh Sonpatki
Prathamesh Sonpatki

Posted on

2 2

Installing GNU grep and find on OS X

brew install grep
brew install findutils
Enter fullscreen mode Exit fullscreen mode

After that update your .bashrc or .zshrc with following to setup the paths correctly.

# .bashrc/.zshrc
export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
Enter fullscreen mode Exit fullscreen mode

That's all!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay