## this method doesn't create any backup filesfind ./* -type f -exec sed -i 's/oldtext/newtext/g' {} \;## or## this method creates backup filesfind . -type f | xargs perl -pi~ -e 's/oldtext/newtext/g;'#