1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#Crear fichero con asignaturas echo "iso" > asignaturas.txt echo "xml" >> asignaturas.txt #Leer fichero con asignaturas con bucle for for line in $(cat asignaturas.txt) do echo $line done #Leer fichero con asignaturas con bucle while while IFS= read -r line do echo $line done < asignaturas.txt |