VERSIONSTABLE=lts301nfs VERSIONROLLING=lts30rolling cd /mnt/src/$VERSIONROLLING/i386/updates/RedHat/RPMS/ for i in *.rpm do if [ -f /mnt/$VERSIONSTABLE/i386/updates/RedHat/RPMS/$i ]; then # echo "In both versions $i" continue else #echo "$i is NOT in $VERSIONSTABLE but is in $VERSIONROLLING" echo "$i" fi done