Find all files with the extension ".sh" in the entire file system, and for each of those files, execute the command to replace the string "unwanted_string" with "desired_string".
find / -name "*.sh" -type f -exec sed -i 's/unwanted_string/desired_string/g' {} \;