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