# List a group from the master file.

trap "rm /tmp/lista$$;exit" 1 2 3

MASTER=../master.list
echo "Enter the GROUP name : \c"
read GRP
echo
echo "Enter the CPU TYPE : \c"
read CPU
echo
echo "The output will be in \"${GRP}.out\""
echo

awk "{ if ( \$6 ~ /$GRP/ && ( \$7 ~ /-/ || \$7 ~ /$CPU/ ) ) print \$1,\$2,\$3,\$4,\$5 }" $MASTER | grep -v '^:' > /tmp/lista$$

# make a list of regular files.
awk '{ if ( $2 !~ /^d/ && $2 !~ /^c/ && $2 !~ /^b/ ) print $1 }' /tmp/lista$$ | sort > ${GRP}.out

rm /tmp/lista$$
