privsecfoss@feddit.dk to Linux@lemmy.ml · 1 year agoMust have commandline tools?message-squaremessage-square27fedilinkarrow-up114arrow-down10file-text
arrow-up114arrow-down1message-squareMust have commandline tools?privsecfoss@feddit.dk to Linux@lemmy.ml · 1 year agomessage-square27fedilinkfile-text
minus-squarewildbus8979linkfedilinkarrow-up3·1 year agoWhat is the difference between ripgrep and just plain grep?
minus-squareForthEorlingas@lemmy.fmhy.mllinkfedilinkarrow-up5·1 year 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-squareShitpostCentral@lemmy.worldlinkfedilinkarrow-up2·1 year agoIt also ignores files in .gitignore and some others by default
minus-squareeyolf@lemmy.worldlinkfedilinkarrow-up3·1 year agoIt also has a much simpler and forgiving syntax. Just type rg anything and it finds anything
minus-squareTurboTurbo@feddit.nllinkfedilinkarrow-up1·1 year 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