Björn Tantau to linuxmemes • 7 months agoSeriously, WTF is up with that?swg-empire.deimagemessage-square29fedilinkarrow-up1310arrow-down114
arrow-up1296arrow-down1imageSeriously, WTF is up with that?swg-empire.deBjörn Tantau to linuxmemes • 7 months agomessage-square29fedilink
minus-squarefmstratlinkfedilink3•7 months agoYou rarely need find with grep if you man grep. Grep does it all.
minus-square@jaybonelink0•7 months agoGrep is going to find all .java files in /home/user/workspace? And then conditionally search them? Not so sure about that.
minus-squarefmstratlinkfedilink9•7 months agogrep -R --include=\*.java "pattern" /home/user/workspace
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