for i in *.rpm
do
if [ -f ../../SL/$i ] ; then
echo "Already have $i in SL, so deleting it."
rm $i
continue
fi
if [ -f ../../../archive/obsolete/$i ] ; then
echo "Already have $i in obsolete/, so deleting it."
rm $i
continue
fi
if [ -f ./hold.errata/$i ] ; then
echo "Already have $i in ./hold.errata/ , so deleting it."
rm $i
continue
fi
if [ -f ../../moved/RPMS/$i ] ; then
echo "Already have $i in ./hold.errata/ , so deleting it."
rm $i
continue
fi
echo ""
done