echo "[email protected]@8888" > fichero while read linea do echo $linea ps -f -p `echo $linea | cut -d '@' -f1` >> resultado done < fichero cat resultado
Ejercicios de Bash: mostrar el nombre de los procesos leyendo de un fichero el identificador de proceso (Procesos, Bash)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.