I have some hundreds of files named like this:
Myfile 460082 15-04-2013.txt
Myfile 740189 21-11-2014.txt
Myfile 110226 18-03-2014.txt
etc.
The number after Myfile is random but it's always 6 digit long.
I know how to create a loop to rename all these filesl, but I don't know exactly what would be the best way to do this renaming. I need to change the format of the date to:
Myfile 460082 2013-04-15.txt
Any idea?