Find all files with the extension ".sh" (case insensitive) and print their names, then use sed to replace "oldword" with "newword" in each of those files.
find . -iname "*.sh" -print0 | xargs -I {} -0 sed -i "" -e 's/oldword/newword/g' {}