*************** *** 198,207 **** $DIFF $logfile $oldlog > $tempdiff # Count the number of matching log entries we have ! count=`$GREP -c "$query" $tempdiff` # Get the last matching entry in the diff file ! lastentry=`$GREP "$query" $tempdiff | $TAIL --lines=1` $RM -f $tempdiff $CAT $logfile > $oldlog --- 198,207 ---- $DIFF $logfile $oldlog > $tempdiff # Count the number of matching log entries we have ! count=`$GREP -c "^<.*$query" $tempdiff` # Get the last matching entry in the diff file ! lastentry=`$GREP "^<.*$query" $tempdiff | $TAIL --lines=1` $RM -f $tempdiff $CAT $logfile > $oldlog