Subject: Re: Last users today
To: Iggy Drougge <>
From: Andreas Kahari <>
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


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:
> BBS: 08-6582572, telnet
>, port 42512.

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