$ find /path/to/files -name "*.xml" -exec perl -p -i -e 's/this/that/g' {} \;