5 ms·
https://github.com/BurntSushi/ripgrep https://github.com/BurntSushi/ripgrep ???
by mcepl 2y ago
https://github.com/BurntSushi/ripgrep https://github.com/BurntSushi/ripgrep ???
- zsyllepsis 2y agoThe author specifically mentions, and benchmarks against, ripgrep in the linked content.
- kstrauser 2y agoRipgrep lacks the “& replace” bit.
- cess11 2y agoNah. $ rg 'sear' -r 'repl' file.txt
- burntsushi 2y agoThat only replaces in the output. ambr seems to actually modify the file contents, like `sed -i`. ripgrep never modifies the contents of files.
- cess11 2y agoRight, can use --passthru and > or sponge to write it to disk. Edit: Oh, it's you. Thanks for a brilliant tool, I use it every workday and have been for years.
- pdimitar 2y agoripgrep is brilliant and I use it a lot but it has no knowledge of the languages it works with so I don't use it for searching anything more than names of functions or stuff. If you really need to search for code constructs that can span multiple lines (but not always do) then Treesitter-aware tools like ast-grep and gritql are superior.