find ./ * -type f | xargs perl -pi -e ‘s/old/new/g’

OR

find ./ -name “*.sh” -type f | xargs sed -i ‘s/textv1/textv2/g