Find all files in the current directory and its subdirectories whose name ends with ".sh", and for each of those files, execute the command "sed -i 's/^/#/' {}," where {} is the name of the file.
find ~ -iname "*.sh" -exec sed -i 's/^/#/' {} \;