#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
Ejercicios de Bash: leer contenido de un fichero (Bash)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.