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