Skip to content

Instantly share code, notes, and snippets.

View AshMagill's full-sized avatar


  • New Zealand
View GitHub Profile
AshMagill /
Created September 21, 2023 21:32 — forked from GregHilston/
Deletes all files that are missing a given string in their name
# Hey everyone, I was having a tough time cleaning up my ROMs, as there would be multiple versions of the same game, like:
# Super-Smash(Japan).rom
# Super-Smash(Europe).rom
# Super-Smash(USA).rom
# I ended up writing this small Python (3.6) script that you can use to cleanup duplicate files.
# Execution looks like this, if you want to keep only USA files: