find . -name '*.html' -type f -exec sh -c '
for file do tar czf "$file.tar.gz" "$file"; done' sh {} +
Em C:
execlp("find", "find", ".", "-name", "*.html", "-type", "f", "-exec",
"sh", "-c", "for file do tar czf \"$file.tar.gz\" \"$file\"; done",
"sh", "{}", "+", 0);