Skip to content

Instantly share code, notes, and snippets.

@andreferreirav2
Created June 6, 2016 16:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreferreirav2/821eb41164001309014b14ff0c28cfe3 to your computer and use it in GitHub Desktop.
Save andreferreirav2/821eb41164001309014b14ff0c28cfe3 to your computer and use it in GitHub Desktop.
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