diff file1 $NEWFILENAME if [ $? -eq 0 ] then rm $NEWFILENAME fi