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 Simple file verification bash

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
Do you want to use this code?

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

  1. Somebody essentially lend a hand to make significantly posts I might
    state. That is the first time I frequented your website page and thus far?
    I amazed with the research you made to make this particular publish incredible.
    Great process!

  2. Yes! Finally something about geburtstagsparty.

  1. 1

    […] 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