ls -l *.rpm.out| cut -f2 -d":" | cut -f2 -d" " >> me for i in `cat me` do echo "looking for build depends for $i" grep "is needed by" $i | cut -f1 -d" " | xargs -n1 yum -y install done