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