Bash script for SFV and uncompressing of .r00 files - NEW VERSION
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. This is a new version, but here is the old one.
1 | #!/bin/bash |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # require cfv and unrar (sudo apt-get install cfv unrar ) # created by Daniel Høyer Iversen err=$(cfv -qf *.sfv 2 >&1) if [ ${#err} -ne 0 ]; then echo $err; echo "Please fix the file(s) and try again." else echo "Everything OK." nice -n 19 unrar x *.rar fi |
I’m guessing “2 >&” is supposed to be “2>&1″?
Thanks for this.
Well look-y-here, the doggone comment system PARSED what I tried to say, but you get what I mean, do you not.
hello