Find all files in the /home directory with a .txt extension, and for each of those files, execute the command to add a # at the beginning of each line.
find /home -type f -name "*.txt" -exec sed -i 's/^/#/g' {} +