Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* NEWBIE: Refine the time clock
@ 2000-04-15  4:00 race9047
  0 siblings, 0 replies; only message in thread
From: race9047 @ 2000-04-15  4:00 UTC (permalink / raw)


I need help getting this to work.

#!/bin/sh
last |grep dan |grep 'date'

The question is to "write a script that will print out the number of
hours and minutes that a user has been logged on to the system.  The
scripts first argument should be the user's login".
I am to assume that this is less than twenty-four hours and does not
cross a day boundary.

I tried putting it through vi-editor as it appears and trying to use a
do/done command sequence also.  For all I know the above is the correct
script, but I may not be typing it in the write place, and typing it in
correctly.  So I need help on that too.


Thanks,


Race


Sent via Deja.com http://www.deja.com/
Before you buy.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-15  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-15  4:00 NEWBIE: Refine the time clock race9047

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox