#!/bin/sh

# cut out directory, filename and receiving time

if [ $# != 2 ]
then
   echo "usage: diffwfdisc.sh wfdisc_file_1 wfdisc_file_2"
   exit 1
fi

sed -e 's/  */ /g' < $1 | cut -d ' ' -f '-3,6-15,18-19' > $1.tmp
sed -e 's/  */ /g' < $2 | cut -d ' ' -f '-3,6-15,18-19' > $2.tmp
diff $1.tmp $2.tmp
ret=$?
rm $1.tmp $2.tmp
exit $ret
