Find all files ending with ".sh" in the current directory and its subdirectories, and replace all occurrences of "echo" with "printf" in each of those files.
find ~ -name "*.sh" -exec sed -i 's/echo/printf/' {} \;