Deprecated: Assigning the return value of new by reference is deprecated in /customers/1/f/c/dahoiv.net/httpd.www/programmering/wp-includes/cache.php on line 36 Deprecated: Assigning the return value of new by reference is deprecated in /customers/1/f/c/dahoiv.net/httpd.www/programmering/wp-includes/query.php on line 21 Deprecated: Assigning the return value of new by reference is deprecated in /customers/1/f/c/dahoiv.net/httpd.www/programmering/wp-includes/theme.php on line 507 Bash script for SFV and uncompressing of .r00 files - NEW VERSION | Programming

Bash script for SFV and uncompressing of .r00 files - NEW VERSION

December 20th, 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. 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
Do you want to use this code?

3 Responses to “Bash script for SFV and uncompressing of .r00 files - NEW VERSION”

  1. I’m guessing “2 >&” is supposed to be “2>&1″?

    Thanks for this.

  2. Well look-y-here, the doggone comment system PARSED what I tried to say, but you get what I mean, do you not.

  3. divya

    hello

Leave a Response