@privsecfoss@feddit.dk to Linux@lemmy.ml • 1 year agoMust have commandline tools?message-square22fedilinkarrow-up14file-text
arrow-up14message-squareMust have commandline tools?@privsecfoss@feddit.dk to Linux@lemmy.ml • 1 year agomessage-square22fedilinkfile-text
minus-squareds12linkfedilink4•1 year agofzf for quickly matching file names especially deep in the directory hierarchy ripgrep for quickly searching for text content within files dtrx for handling the right extractions of different archive types
minus-square@wildbus8979@sh.itjust.workslinkfedilink1•1 year agoWhat is the difference between ripgrep and just plain grep?
minus-squareTurboTurbolinkfedilink1•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
minus-square@ForthEorlingas@lemmy.fmhy.mllinkfedilink1•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-square@ShitpostCentral@lemmy.worldlinkfedilink2•1 year agoIt also ignores files in .gitignore and some others by default
minus-square@eyolf@lemmy.worldlinkfedilink1•1 year agoIt also has a much simpler and forgiving syntax. Just type rg anything and it finds anything
fzf for quickly matching file names especially deep in the directory hierarchy
ripgrep for quickly searching for text content within files
dtrx for handling the right extractions of different archive types
What is the difference between
ripgrep
and just plain grep?Even better, there is ripgrep-all that can also search in binary files like PDFs and office documents: https://github.com/phiresky/ripgrep-all
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 anything