Comment by shortrounddev2

3 years ago

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.

  • Last time I used macOS (which was 6 years ago) there was no extended expressions, or the regex syntax was limited. I forget (again, haven't used an apple product in years)

    • 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

      2 replies →