поиск файлов в иерархии каталогов (search for files in a directory hierarchy)
Статус выхода (Exit)
find
exits with status 0 if all files are processed successfully,
greater than 0 if errors occur. This is deliberately a very
broad description, but if the return value is non-zero, you
should not rely on the correctness of the results of find
.
When some error occurs, find
may stop immediately, without
completing all the actions specified. For example, some starting
points may not have been examined or some pending program
invocations for -exec ... {} +
or -execdir ... {} +
may not have
been performed.