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

linuxmemes

20762 readers
1699 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
[–] [email protected] 12 points 4 months ago

find's expressions are order-sensitive and look like options, which is probably why the real options go zeroth, then the starting path goes first. Also, there is a -path-match expression that means something different than that starting path.

That said, there's nothing stopping the writing of a wrapper script that allows any placement or intermingling of any of those groupings.

The simplest would just grab the last argument and use it in the first position, which I'm guessing is what the meme creator really wants. Watch out for the edge case of whitespace in the path name. (And the edge case of the edge case where the end part of that path is valid but not the intended target.)