I have a list of thousand files which have filenames with .txt.txt
appended twice, I want to remove the second .txt
from the file. for eg.
File1.txt.txt
is the original file.
I want to rename it to File1.txt
I cannot do it manually because there are thousand files.
I tried different combinations using mv
command but got no luck. Please help.