Replace all occurrences of 'previousword' with 'newword' in all regular files with '.cpp' extension under '/home/www' directory tree and modify them in-place
find /home/www -type f -name '*.cpp'  -exec sed -i 's/previousword/newword/g' '{}' \;