Thx for all the help so far, I really appreciate it, this is the last task I have to do then I am no longer a trainee ^^, which means I can use whatever utility I want. :O
I need to write a script that does more or less what is shown below.
The Users Name
PID TTY TIME CMD
12345 pts/3 00:00:00 vim
The Users2 Name2
PID TTY TIME CMD
12345 pts/2 00:00:00 vim
Print out all users currently logged on to the system and display the processes they are running.
The problem I am facing is I don’t know how to acquire the users name (the actual name not the Username), as for the format it has to be like shown above more or less.
And again I cant use SED or Awk (I will be free to use them after am done with this

).
So its gona be one of those while read line statements.
So the 1 million dollar question is how I format it by field
Will the cut command help me at all here?
I am starting to think this guy uses Google to find the tasks that he wants me to do,
This is unbelievably similar to what i want to do

, maybe it is just an exercise that is given to most beginners or something.
Thanks in advanced for any help.