Find all files in the current directory with the extension ".sh", and add "#!/bin/bash" to the beginning of each file.
find . -maxdepth 1 -type f -name "*.sh" -exec sed -i '1s/^/#!\/bin\/bash\n/' {} \;