更新时间:2023-11-29 23:42:58
In addition to the other fine answers, GNU find (at least) has a -quit
predicate:
find path -other -predicates \( -exec cmd {} \; -o -quit \)
The -quit
predicate is certainly non-standard and does not exist in BSD find.