perl -pi -w -e 's/find/replace/g' `find . -name \*.txt` #### find . -name \*.txt -print0 | xargs -0 perl -pi -w -e 's/find/replace/g'