Bash script for SFV and uncompressing of .r00 files
June 14th, 2008 by Daniel Høyer Iversen
A bash script to verify the integrity of files on Linux. Simple file verification (SFV) is file format to store CRC32 checksums. If the checksums is correct, then the script will uncompress the files. The script can be used at files of format .rar, .r00, .r01 etc and with a .sfv file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/bash # require cksfv http://packages.ubuntu.com/feisty/i386/cksfv/download # created by Daniel Høyer Iversenerr=$(cksfv -qf *.sfv 2>&1) if [ ${#err} -ne 0 ]; then echo $err; echo "Please fix the file(s) and try again." else echo "Everything OK." unrar x *.rar fi |
1 Response to “Bash script for SFV and uncompressing of .r00 files”
[…] be used at files of format .rar, .r00, .r01 etc and with a .sfv file. This is a new version, but here is the old […]
Leave a Response