Find all files (type f) and execute a sed command to replace the last part of the filename with "txt" (\1\2txt/) for each file found ({} +).
find . -type f -exec sed -i 's/\(.*\)\(\.\)\([a-zA-Z0-9]\+\)/\1\2txt/' {} +