linux – Change the extension of all files from a loader

I have a script that creates logs automatically, but the name of the log file was "name_txt" instead of "name.txt" (it was purely an error).

How can I from a command linux grep all files that end with "_txt", delete the "_txt" and replace it with ".txt"?

thank you,