Find all files in the current directory (and its subdirectories) whose name contains any characters, and for each of those files, run the command "sed -i 's/^/#/'" which will add a "#" character at the beginning of each line.
find . -name "*.*" | xargs sed -i 's/^/#/'