SUPER SAIYAN@lemmy.world to memes@lemmy.world · 3 days agoI suck at naming anythinglemmy.worldimagemessage-square30linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageI suck at naming anythinglemmy.worldSUPER SAIYAN@lemmy.world to memes@lemmy.world · 3 days agomessage-square30linkfedilink
minus-squareBeigeAgenda@lemmy.calinkfedilinkarrow-up0·3 days agoOr like me obviously spending cycles trawling through everything. find dir/ -iname "*John*Cena*" or grep -rIi "John.*Cena" dir/
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up0·3 days agoUse fd and ripgrep at least. It’s not the stone age.
minus-squareBeigeAgenda@lemmy.calinkfedilinkarrow-up0·3 days agoI’m probably using them already if they are aliased to find and grep.
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up0·3 days 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-squareqjkxbmwvz@startrek.websitelinkfedilinkarrow-up0·3 days ago grep -rIi “John.*Cena” dir/ I have this sort of thing aliased, with some added --include flags to filter file type (e.g., only match source/script files). Super useful!
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up0·3 days ago spending cycles trawling through everything Beats spending cycles indexing everything and never search them.
Or like me obviously spending cycles trawling through everything.
or
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.I have this sort of thing aliased, with some added
--includeflags to filter file type (e.g., only match source/script files). Super useful!Beats spending cycles indexing everything and never search them.