Björn Tantau@swg-empire.de to linuxmemes@lemmy.world · 1 month agoSeriously, WTF is up with that?swg-empire.deimagemessage-square29fedilinkarrow-up1311
arrow-up1311imageSeriously, WTF is up with that?swg-empire.deBjörn Tantau@swg-empire.de to linuxmemes@lemmy.world · 1 month agomessage-square29fedilink
minus-squareEvotech@lemmy.worldlinkfedilinkarrow-up7·edit-21 month agoIdk why but I’ve always been a locate enjoyer myself. But find has more usecases.
minus-squareEvotech@lemmy.worldlinkfedilinkarrow-up13·edit-21 month agoFind 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·1 month agoGrep. Couldn’t live without find exec grep.
minus-squarefmstrat@lemmy.nowsci.comlinkfedilinkarrow-up3·1 month agoYou rarely need find with grep if you man grep. Grep does it all.
minus-squarejaybone@lemmy.worldlinkfedilinkarrow-up1·1 month agoGrep 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·1 month agogrep -R --include=\*.java "pattern" /home/user/workspace
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