@[email protected] to [email protected] • 2 years agoMust have commandline tools?message-square39fedilinkarrow-up119arrow-down10file-text
arrow-up119arrow-down1message-squareMust have commandline tools?@[email protected] to [email protected] • 2 years agomessage-square39fedilinkfile-text
minus-square@[email protected]linkfedilink3•2 years agoWhat is the difference between ripgrep and just plain grep?
minus-square@[email protected]linkfedilink5•2 years agoripgrep is a reimplementation of grep in Rust. It benchmarks faster for large file searches and also comes with quality of life features like syntax highlighting by default.
minus-square@ShitpostCentrallink4•2 years agoIt also ignores files in .gitignore and some others by default
minus-square@eyolflink3•2 years agoIt also has a much simpler and forgiving syntax. Just type rg anything and it finds anything
minus-squareTurboTurbolinkfedilink1•2 years agoEven better, there is ripgrep-all that can also search in binary files like PDFs and office documents: https://github.com/phiresky/ripgrep-all
What is the difference between
ripgrep
and just plain grep?ripgrep
is a reimplementation ofgrep
in Rust. It benchmarks faster for large file searches and also comes with quality of life features like syntax highlighting by default.It also ignores files in .gitignore and some others by default
It also has a much simpler and forgiving syntax. Just type
rg anything
and it finds anythinggrep
does that throughfgrep
Even better, there is ripgrep-all that can also search in binary files like PDFs and office documents: https://github.com/phiresky/ripgrep-all