Timeline for How to combine 2 -name conditions in find?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 23, 2021 at 9:02 | comment | added | Alessandro Cuttin | also -execdir is preferable wrt -exec | |
| Oct 9, 2020 at 16:57 | comment | added | Luke Rehmann | one may want to consider -iname instead of -name for case insensitivity | |
| Jun 13, 2019 at 20:38 | comment | added | Victor Sergienko | 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> | |
| Oct 12, 2012 at 15:05 | history | edited | rahmu | CC BY-SA 3.0 | added 533 characters in body |
| Oct 11, 2012 at 18:13 | review | Low quality posts | |||
| Oct 11, 2012 at 18:18 | |||||
| Oct 11, 2012 at 18:09 | history | edited | jw013 | CC BY-SA 3.0 | -o is more portable than -or |
| Oct 11, 2012 at 18:08 | history | answered | Serge | CC BY-SA 3.0 |