Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not necessary to install a suite of commands if you want updated grep.

Just use Homebrew and you can install different versions of grep, including GNU's:

    brew install grep


Sure but with this you get all the other improved core utils like sed, etc. GNU utils just blow BSD/macOS out of the water. Personally, macOS seems to me like a half baked development platform in general


Some of us don't want all of GNU's utilities; just on an as-needed basis. They're not as needed as they once were.

Many of these utilities have been rewritten in Rust and have more modern features and are faster.

For example, instead of ls, I use exa [1]. Or ripgrep [2] instead of grep. sd [3] instead of sed.

[1]: https://github.com/ogham/exa

[2]: https://github.com/BurntSushi/ripgrep

[3]: https://github.com/chmln/sd




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: