Xref: utzoo comp.sources.wanted:16449 comp.unix.questions:30818 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!navarra From: navarra@casbah.acns.nwu.edu (John 'tms' Navarra) Newsgroups: comp.sources.wanted,comp.unix.questions Subject: Re: Searching the output of last Keywords: last awk sed perl C whatever Message-ID: <1991Apr29.021236.12132@casbah.acns.nwu.edu> Date: 29 Apr 91 02:12:36 GMT References: <1991Apr28.070748.5279@bradley.bradley.edu> Organization: Northwestern University Lines: 25 In article <1991Apr28.070748.5279@bradley.bradley.edu> guru@buhub.bradley.edu (Jerry Whelan) writes: > > Does anyone have/know of a program to parse the output of the >'last' command and tell me who was logged in at some arbitrary time? >I'd like to be able to type: > > whenwho 9:56 do last | grep time > >and get a list of all the people who were logged in during that particular >minute. My site resets the wtmp file at 4 AM, so we are not dealing with >infinite output from 'last.' Awk, perl, C or anything that works reasonably >quickly is fine with me. > >------------------------------------------------------------------------------- > "I'm not sure what I mean, so I'm going to listen to what I say." > guru@ (buhub.bradley.edu || bucc1.bradley.edu) || whelan@wiliki.eng.hawaii.edu -- From the Lab of the MaD ScIenTiST: navarra@casbah.acns.nwu.edu