#!/bin/bash

ls -1 *.o | cut -d / -f 2 | while read file; do
   diff -cb $file checkdir/$file | grep "! [0-9A-H]" >/dev/null 2>&1
   stat=$?
   if [ $stat -eq 0 ]; then
      #echo "status = " $stat
      echo "Error in file: " $file
   fi
done
