echo "ps -fL -C @sh" > fichero echo "ps -fL -C @sh" >> fichero while read linea do echo $linea `echo $linea | cut -d '@' -f1 ; echo $linea | cut -d '@' -f2` >> resultado done < fichero cat resultado
Ejercicios de Bash: leer nombre de proceso de un fichero y mostrar hilos (Procesos, Bash)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.