Ciclo While con redireccionamiento

0
511

#!/bin/bash
CONTA=0
while  read number # && [ $CONTA -lt 10 ]
do
   echo “Serie : $number “
   echo Numero: $CONTA
   let CONTA=CONTA+1
   if [ “CONTA” = “10” ]; then
      echo
      echo ” OK ”
     else echo “Cont”
   fi
done < numeros.txt
 

LEAVE A REPLY

Please enter your comment!
Please enter your name here