SUPER SAIYAN@lemmy.world to memes@lemmy.world · 3 months agoI suck at naming anythinglemmy.worldimagemessage-square17linkfedilinkarrow-up1194arrow-down116
arrow-up1178arrow-down1imageI suck at naming anythinglemmy.worldSUPER SAIYAN@lemmy.world to memes@lemmy.world · 3 months agomessage-square17linkfedilink
minus-squareBeigeAgenda@lemmy.calinkfedilinkarrow-up4·edit-23 months agoOr like me obliviously spending cycles trawling through everything. find dir/ -iname "*John*Cena*" or grep -rIi "John.*Cena" dir/
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·3 months ago spending cycles trawling through everything Beats spending cycles indexing everything and never search them.
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up1·3 months agoUse fd and ripgrep at least. It’s not the stone age.
minus-squareBeigeAgenda@lemmy.calinkfedilinkarrow-up1·3 months agoI’m probably using them already if they are aliased to find and grep.
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up2·3 months agoBtw, while I’m here: you might also want to look into eza, fzf, bat, and maybe delta (or icdiff for side-by-side comparison). I’m pretty conservative regarding replacement for classic utils, but these are worth it.
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up1·3 months agoThey use different arguments, so unlikely. Though idk if there are wrappers or anything like that. They’re both easier to use and faster, so it’s worth making sure to switch.
minus-squareMeron35@lemmy.worldlinkfedilinkarrow-up1·3 months agoplocate is much faster and requires less resources. macOS users should use mdfind instead
And mlocate for Linux.
Or like me obliviously spending cycles trawling through everything.
or
Beats spending cycles indexing everything and never search them.
Use
fdand ripgrep at least. It’s not the stone age.I’m probably using them already if they are aliased to
findandgrep.Btw, while I’m here: you might also want to look into
eza,fzf,bat, and maybedelta(oricdifffor side-by-side comparison). I’m pretty conservative regarding replacement for classic utils, but these are worth it.They use different arguments, so unlikely. Though idk if there are wrappers or anything like that.
They’re both easier to use and faster, so it’s worth making sure to switch.
plocate is much faster and requires less resources. macOS users should use mdfind instead