#!/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
#!/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
© 2000-2021 Linuxsc.Net.