Find all files in the home directory with the extension ".sh" and execute a command to replace all occurrences of "oldword" with "newword" in each file.
find ~/ -type f -name "*.sh" -exec sed -i 's/oldword/newword/g' {} \;