There is a syntax error in the following shell script. I must have accidentally modified it as I didn't write it:
./check.sh: line 8: syntax error near unexpected token `done'
'/check.sh: line 8: ` done < CHECKSUMS
thanks for your help
while read sum blocks name
if [ "$sum" == "$(sum $name | cut -f1 -d" ")" ] ; then
echo sum of $name is correct!
echo sum of $name is incorrect!
done < CHECKSUMS