UNix Bourne Shell

i require a utility that identifies all users currently logged into the system. It should create a file called logfile which contains a list of usernames together with a count of how many login sessions they are currently running, for example

coc9io : 1
hbh8jd : 3
dg7hy : 1
root : 4

it should also print to a standard output message to the form

Total User: hbh8jd (3 sessions)

for each user with more than 2 current login sessions.

if possible can you you use comments so that i understand the code better

thanks very much

peter west

This seems to be the same request as: this post by dave ward. Are they both for a homework assignment?

yip it is we all must have the same idea

any help would be appreciated though

unix is great but books and web serches are not much help

thanks pete

Read our rules. There is a link at the bottom of every page. This thread is closed.