I try to explain my problem:
I have a directory of emulator rom-files and I also have a directory of screenshots of the rom files. I have 17000 screnshots and bout 8000 roms. So there a some unnecessary roms/several screenshots of a single rom.
Here's ans example:
rom-file: thing bounces back.xxx
screenshot-file: thingbouncesb.png
So the rom and screenshot files resemble eachother, but are not the same.
What I want to do:
Rename the screenshots according to the rom names, meaning the the "left overs" are deleted etc. Or of course the other way around. The goal is to have exactly the same number of roms and screenshots and rom names are exactly the same as sthe creenshot names. This requires some kind of "heuristic" to recognize the right file (because it's not exactly the same before renaming.)
Is this even possible
