bash - how to exit from a find-exec loop if the command fails
how to write a find-exec loop that exits on failure
I was trying to figure this out for a command I needed to run in Grid, but, it's a useful pattern in general.
How to exit from find -exec if it fails on one of the files
The answer from …