filename2sfv: Create SFV files from filename-embedded checksums

Initially published on 2009-03-14.

This script will read checksums embedded in the filenames of files in the current directory, and will create an SFV file, suitable for checking by cfv, WinSFV and other similar tools.

The script should work on any GNU/Linux system, and probably on other *nixes. It is written in PHP, so make sure you have PHP (in Debian/Ubuntu, specifically the package named php5-cli) installed.

Example

$ ls
[APNF]_Eternal_Family_[6ACF83C3].avi
 
$ filename2sfv
1 checksum(s) written to filename2sfv.sfv.

The file filename2sfv.sfv will contain:

; Generated by filename2sfv v.2009-03-14 <http://romanrm.ru/en/filename2sfv>
;           at 2009-03-14 17:02:09
;
[APNF]_Eternal_Family_[6ACF83C3].avi 6acf83c3

Download

Save the file as filename2sfv, then set it as executable (chmod +x filename2sfv).

For convenience, you may copy or symlink the script to a dir which is in the system PATH, e.g. /usr/local/bin/.


en/filename2sfv.txt · Last modified: 2009-03-14 23:22 UTC (external edit)