Find all files with the extension ".sh" in the root directory and execute a command to replace "<oldvar>" with "<newvar>" in each of those files.
find / -name "*.sh" -exec sed -i 's/<oldvar>/<newvar>/' {} \;