1#!/bin/sh
2
3for file in `ls | grep '^[a-z2]*\(_v\)\?[0-9]*$' | xargs`
4do
5    new=`shasum -a 256 $file`
6    old=`cat $file.shasum`
7    if [ "$new" = "$old" ]
8    then
9        echo $file "\t" OK
10    else
11        echo $file "\t" ERROR
12    fi
13done
14