I was looking for a ROM renamer for Linux, and unfortunately there aren’t many options:

Since i could not find any tool meeting my needs, i’ve ended up writing my own in Python: renfromdats.

I’ve also added some extra features not found in other similar tools:

  • support for SFVs in addition to datfiles;
  • rename support files (saves, shots, etc.) by matching the filenames from 2 datfiles;
  • by default output on stdout a shell script to perform the renames.

This is the current cmdline usage:

usage: renfromdats.py [-h] [-r] [--include-roms] [--partial-matches]
                      [--recurse]
                      src_dat dst_dat [romdir [romdir ...]]