|
combination of two commands
I want to show a output like this
Lee Ballancore
PID TTY TIME CMD
31799 pts/3 00:00:00 vim
31866 pts/3 00:00:00 vim
2495 pts/7 00:00:00 vim
8368 pts/0 00:00:00 vim
9544 pts/2 00:00:00 ps
Alistairr Rutherford
PID TTY TIME CMD
8368 pts/0 00:00:00 vim
9544 pts/2 00:00:00 ps
although i m getting the output with ps -a command but i m not able to show it separately along with the user name (not login name) on the top. I realise that it is the combination of finger and ps -a. but i dont know how to select only the name and display it separately for all the users logged on. is it possible for me to do this without the use od awk command.
|