Removing duplicate files, keeping only the newest file
- by pinkie_d_pie_0228
I'm trying to clean up a photo dump folder, in which several files are duplicated but with different filenames or lost in subfolders.
I've looked at tools like rmlint, duff and fdupes, but I can't seem to find a way to have them keep only the file with the most recent timestamp. I suspect I have to postprocess the results, but I don't even know where to start to do this.
Can anyone guide me on how to get the duplicate files list and delete everything but the newest file?