Find all files with the extension ".sh" and execute a command to replace the first line of each file with "#!/bin/bash" followed by a new line with "#Random comment".
find . -name '*.sh' -exec sed -ri 's/^(#!\/bin\/bash)/\1\n#Random comment/' {} \;