296
you are viewing a single comment's thread
view the rest of the comments
[-] Evotech@lemmy.world 13 points 4 months ago* (last edited 4 months ago)

Find can find stuff based on permissions or other variables and interact with files, like delete etc

Locate is just a database of filenames

[-] jaybone@lemmy.world 3 points 4 months ago

Grep. Couldn’t live without find exec grep.

[-] fmstrat@lemmy.nowsci.com 3 points 4 months ago

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

[-] jaybone@lemmy.world 0 points 4 months ago

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 4 months ago

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

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

linuxmemes

20707 readers
1034 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