How to sort championship script

0

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
    
asked by anonymous 06.11.2018 / 19:43

0 answers