Created
June 6, 2016 16:47
-
-
Save andreferreirav2/821eb41164001309014b14ff0c28cfe3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sfv_file=`ls *.sfv` | |
while read file | |
do | |
chunk_name=`echo $file | cut -d ' ' -f 1` | |
crc_calc=`crc32 $chunk_name` | |
crc_to_check=`echo $file | cut -d ' ' -f 2` | |
if [ "$crc_calc" == "$crc_to_check" ];then | |
echo "$chunk_name is BAD" | |
else | |
echo "$chunk_name is OK" | |
fi | |
done<"$sfv_file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment