cd ../RPMS for i in *.rpm; do if [ -s $i ] ; then echo $i; else echo "$i is not really there"; # rm $i fi; done