BjörnA to linuxmemes@lemmy.world · il y a 2 ansSeriously, WTF is up with that?imagemessage-square28linkfedilinkarrow-up1312arrow-down114
arrow-up1298arrow-down1imageSeriously, WTF is up with that?BjörnA to linuxmemes@lemmy.world · il y a 2 ansmessage-square28linkfedilink
minus-squarefmstrat@lemmy.nowsci.comlinkfedilinkarrow-up3·il y a 2 ansYou rarely need find with grep if you man grep. Grep does it all.
minus-squarejaybone@lemmy.worldlinkfedilinkarrow-up1arrow-down1·il y a 2 ansGrep 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·il y a 2 ansgrep -R --include=\*.java "pattern" /home/user/workspace
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