this post was submitted on 18 May 2024
296 points (95.7% liked)

linuxmemes

19733 readers
1324 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jaybone@lemmy.world 3 points 1 month ago (1 children)

Grep. Couldn’t live without find exec grep.

[–] fmstrat@lemmy.nowsci.com 3 points 1 month ago (1 children)

You rarely need find with grep if you man grep. Grep does it all.

[–] jaybone@lemmy.world 0 points 1 month ago (1 children)

Grep is going to find all .java files in /home/user/workspace? And then conditionally search them? Not so sure about that.

[–] fmstrat@lemmy.nowsci.com 9 points 1 month ago

grep -R --include=\*.java "pattern" /home/user/workspace