Comment by shortrounddev2
3 years ago
While you're at it, `brew install coreutils`. The coreutils that ship with macOS lack a lot of features available on Linux. If you use bash, I recommend upgrading it, too, since Apple ships a 16 year old build (iirc due to legal issues associated with GPLv3) `brew install bash`
They come from BSD (and, nitpick, are not called coreutils). These BSD tools lack features mostly only if you're used to GNU coreutils.
The expanse of GNU coreutils features is questionable too: some are nice, some you can do without easily and rarely to never miss, and some are downright annoying (yes I'm looking at you, ls with colors+quotes)
Obviously everything is preference, but I prefer things like expanded regex in gnu grep to the underpowered macOS utils
GNU and BSD grep both default to "basic" regular expressions and both have the `-E` switch to use "extended" expressions.
4 replies →
They're shipping zsh now.
I've found the transition to zsh surprisingly painless. But then, I do most of my command line scripting on linux and not my own machine. But still.
That's why I said "if you use bash"
macOS has shipped Zsh for a long time. The difference is that now (since Catalina), it’s the default shell.