$ find /path/to/files -name "*.xml" -exec perl -p -i -e 's/this/that/g' {} \; #### $ find /path/to/files -name "*.txt" -exec -perl -p -i -e 's/these/those/i' {} \; #### $ find /path/to/files -type f -exec changeIt.pl {} \;
## $ find /path/to/files -name "*.txt" -exec -perl -p -i -e 's/these/those/i' {} \; ##
## $ find /path/to/files -type f -exec changeIt.pl {} \;