Björn Tantau@swg-empire.de to linuxmemes@lemmy.world · 5 个月前Seriously, WTF is up with that?swg-empire.deimagemessage-square29fedilinkarrow-up1310arrow-down114
arrow-up1296arrow-down1imageSeriously, WTF is up with that?swg-empire.deBjörn Tantau@swg-empire.de to linuxmemes@lemmy.world · 5 个月前message-square29fedilink
minus-squareeskimofry@lemmy.worldlinkfedilinkarrow-up34·5 个月前Corporate users in shambles because mlocate.db cannot be generated without root.
minus-squareEvotech@lemmy.worldlinkfedilinkarrow-up7·edit-25 个月前Idk why but I’ve always been a locate enjoyer myself. But find has more usecases.
minus-squareEvotech@lemmy.worldlinkfedilinkarrow-up13·edit-25 个月前Find can find stuff based on permissions or other variables and interact with files, like delete etc Locate is just a database of filenames
minus-squarejaybone@lemmy.worldlinkfedilinkarrow-up3·5 个月前Grep. Couldn’t live without find exec grep.
minus-squarefmstrat@lemmy.nowsci.comlinkfedilinkarrow-up3·5 个月前You rarely need find with grep if you man grep. Grep does it all.
minus-squarejaybone@lemmy.worldlinkfedilinkarrow-up1arrow-down1·5 个月前Grep is going to find all .java files in /home/user/workspace? And then conditionally search them? Not so sure about that.
minus-squarefmstrat@lemmy.nowsci.comlinkfedilinkarrow-up9·5 个月前grep -R --include=\*.java "pattern" /home/user/workspace
minus-squareAustralis13@fedia.iolinkfedilinkarrow-up1·5 个月前Indeed! Covers most of the instances where I would otherwise have to use find.
locate
enjoyers unite.Corporate users in shambles because mlocate.db cannot be generated without root.
Idk why but I’ve always been a locate enjoyer myself. But find has more usecases.
Like what?
Find can find stuff based on permissions or other variables and interact with files, like delete etc
Locate is just a database of filenames
Grep. Couldn’t live without find exec grep.
You rarely need find with grep if you man grep. Grep does it all.
Grep is going to find all .java files in /home/user/workspace? And then conditionally search them? Not so sure about that.
grep -R --include=\*.java "pattern" /home/user/workspace
Indeed! Covers most of the instances where I would otherwise have to use find.