renaming duplicate files for achiving
Current student @ Edinburgh Napier University and struggling slightly with renaming duplicate files for archiving
i already have the script with duplicate files matching md5 and sorting by filename, then outputting to a .txt file
stage 2 of the project has to copy over files only named in the IMG_1234.jpg format
so IMG_xxxx.jpg must be 4 numbers after the "_" and all in jpg format
my problem is,when copying over the IMG_ files, if there is an IMG_ file with the same name in that directory, the one being copied must be renamed.
renamed by added .jpg to the end : so IMG_6453.jpg would become IMG_6453.jpg.jpg