Find all files in the current directory (and its subdirectories) with any extension, and for each of them, execute the command "sed -i 's/^/#/'", replacing the "{}" with the file name.
find ./ -name '*.*' -exec sed -i 's/^/#/' {} \;