I also prefer ripgrep, because it’s a lot closer to a drop-in replacement for grep, and sometimes I’m on a server where only grep is installed. I don’t want to have to remember how to use 2 different programs for the same thing.
ag does have some functionality for file-matching that ripgrep (and grep) is missing, but once I discovered fd https://github.com/sharkdp/fd (a drop-in-ish replacement for find) and xargs I never looked back.
Typical command: fd match_some_paths | xargs rg match_lines_in_some_files (-l if i just want the matching filenames)
Ag: the silver searcher, (grep replacement)
Alternatives: grep, ack
Ack has a better interface than grep and ag is like ack but faster.
Give ripgrep a try. I think you might find it to be even better than ag.
...Interesting. Why do you prefer it?
I also prefer ripgrep, because it’s a lot closer to a drop-in replacement for grep, and sometimes I’m on a server where only grep is installed. I don’t want to have to remember how to use 2 different programs for the same thing.
ag does have some functionality for file-matching that ripgrep (and grep) is missing, but once I discovered fd https://github.com/sharkdp/fd (a drop-in-ish replacement for find) and xargs I never looked back.
Typical command:
fd match_some_paths | xargs rg match_lines_in_some_files (-l if i just want the matching filenames)