Good afternoon, how would you do to sort the results and make logic this script:
#!/bin/bash
echo -e " Quantos Times? "
read qtd
for i in $( seq $qtd )
do
echo " Qual o $i time? "
read nome[$i]
done
for i in $( seq $qtd )
do
for j in $( seq $qtd )
do
if [ $i -ne $j ]
then
echo -e "${nome[$i]} $(($RANDOM%8)) x $(($RANDOM%8)) ${nome[$j]}"
fi
done
done