Perl CRC32 Script

Posted in anime, code

I wanted something to check my anime for validity on my desktop. I run Linux on it, and needed something that could do it all from the shell. I wanted to be able to check just 1 file (for when i grab a release), or I wanted to give it a directory, and have it check all folders and all files [or limit it to video files only]). It can also output to a “log file”. I wrote it with anime in mind, but it will work with any other file type.

You can read a bit more about the script Here or you can skip right to the script.

Here is how to use the script. Be sure to remember to chmod +x crc32.pl before running it.

 Ryan's CRC32 checker 0.1
 usage:  ./crc32.pl <options>
 options:
   -f <file>       Get the CRC32 of a file
   -d <directory>  Get the CRC32 of all files in a directory
   -v              Verifies the CRC32 value by checking the filename for a match
   -vid            Only check video files (avi, mkv, ogm, mp4, wmv)
   -o <file>       Output to file (appends) - Note: this will run "silent" and only output to the file.
 example:
   ./crc32.pl -v -f [Conclave-Mendoi]_ef_-_a_tale_of_memories_05_[H264][1C06C6C4].mkv
   ./crc32.pl -v -d /mnt/Storage/Anime/ -vid -o animelog.txt

The script is BSD licensed, so for those of you who know what that means, or cares, have fun :p. Also, if anyone has constructive advice for changes to the script, please email them to me (my addresses are in the script itself).

One Comment

  1. e
    Posted January 9, 2008 at 11:40 am | Permalink

    thanks for the script.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*