I use this command for test my html pages for errors:
find . -iname '*html' -type f -print -exec /usr/local/bin/tidy -q -e {} \;
And I want to get exit code > 0 if any errors was founded by tidy.
find always return me 0.
Is there any way to sums exit code from tidy, and return it from find or any other wrapper script?