#!/bin/sh
###set -e
trap "exit" INT
files=${1:-*/pre3}
for sd in $files; do
cd $sd
#echo $sd
echo `tail -n 1 output` > x1
echo `tail -n 1 output-2` > x2
cmp -s x1 x2 > /dev/null
if [ $? -eq 1 ]; then
echo $sd + "is different"
fi
rm x1 x2
cd ..
cd ..
done