Autor Tema: Linux BASH  (Leído 1429 veces)

Desconectado Teherkan

  • Usuario Héroe
  • *****
  • Mensajes: 1.889
  • La buena compañia nunca esta de mas...
    • Alfredo Salvador G.
Linux BASH
« en: 16 de Noviembre de 2007, 17:24:49 »
[a-zA-Z@]`;
do
        let suma+=$i;
done

let total+=$suma;

echo "$suma puntos totals";

let total-=$2;

if test $total -eq  0; then
        echo " LISTA PERFECTA ";
else
        if test $total -le 0 ;then
                let total*=-1;
                echo "Te faltan $total puntos";
        else
                echo "Te SOBRAN $total puntos ARREGLALO";
        fi
fi
~                                                                                                                                                           
~