How to create SFV files in OS X
If you want to do that, you will soon find an app called ‘MacSFV’ but its PPC only and the latest update done to it is in 2003. So what to do now?
Fortunately the Mac has a BSD unix system as its underpinning with lots of good and usable command line tools. One of them is called ‘cksum’. Although it does not generate straight sfv files (which uses crc32 checksums for each file listed in them) but with a little trick you can use it. Here’s a simple example, using multi volume rar files:
cksum -o 3 *.part*.rar | perl -wane 'printf "%s %08x\n", $F[2], $F[0]‘ > checksums.sfv
It basically pipes the output from cksum to a small perl program that formats the output as in the sfv file standard (if there’s a standard like that :)). If you want to be sure that this is compatible with windows systems, use \r\n instead of \n in the printf fomratting call above.
Also thanks for Zsolt Muller for his article. Nice fella, since he uses drupal with its default theme for his blog ![]()
Recent Comments