Find all files with the extension ".txt" in the entire file system and execute the command "sed -i" to replace any empty lines with a "#" symbol.
find / -iname "*.txt" -exec sed -i "/^$/s@^.*@#$&@" {} \;