Subject: Re: Last users today
To: Iggy Drougge <optimus@canit.se>
From: Andreas Kahari <ak@freeshell.org>
List: netbsd-users
Date: 01/23/2002 13:36:59
Probably a bit innefficient, but works, in ksh:

last | grep "$(date +'%a %b %d')" | cut -d' ' -f1 | sort | uniq


Andreas


On Tue, Jan 22, 2002 at 01:26:41AM +0100, Iggy Drougge wrote:
> I'd like to add a section to my daily security output,
> listing all users who have, or are, logged in during the
> day. Unfortunately, there doesn't seem to be any facility
> in last(1) for that. How would I go about solving this in a
> simple way? It might even be an area of future improvement in
> last. =)
>
> -- En ligne avec Thor 2.6a.
>
> Gå med i SUGA, Swedish Usergroup of Amiga!  WWW:
> http://swedish.usergroup.amiga.tm/ BBS: 08-6582572, telnet
> sua.ath.cx, port 42512.

-- 
Andreas Kahari, Dunedin, New Zealand
--------------------------------------
Bioinformatics and Unix System Support