Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 29
    If you're doing -exec or any other action on the find results, remember to parenthese \( \) the whole criteria, otherwise -exec will apply only to the last -or-ed criterion. To work on all of them, parenthese them: find \( <criterion> -o <criterion> \) -exec <command> Commented Jun 13, 2019 at 20:38
  • 3
    one may want to consider -iname instead of -name for case insensitivity Commented Oct 9, 2020 at 16:57
  • also -execdir is preferable wrt -exec Commented Jun 23, 2021 at 9:02