I didn’t know I needed it, but what I know is that I will download it.

  • intrepid
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    The advantage of both rg and fd are that they use the Perl-compatible regex syntax that almost every contemporary programming language uses. There’s only one thing to learn.

    • BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      That, and the use of gitignore and other heuristics to ignore many files by default.

      Plus, unlike grep, find is just…awkward. The directories to search must be prior to any search arguments (and . is not the default, it must be specified explicitly), and using a search pattern is treated as one of many special cases requiring one of a variety of flags rather than the obvious default operation.

      It’s a powerful DSL, but…not a convenient one by any stretch of the imagination.