Find all files with the extension ".sh" and execute a command to replace "oldstring" with "newstring" in each file, creating a backup of each file with the extension ".bak".
find . -type f -name "*.sh" -exec sed -i.bak 's/oldstring/newstring/g' {} \;