login time using last, awk, sed
From: joshua (joshua_au_at_hotmail.com)
Date: 04/30/03
- Next message: joshua: "Re: rm - Arguments too long"
- Previous message: Tony Walton: "Re: TIMEZONE bug in Solaris??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 30 Apr 2003 18:51:17 +0800
I am trying to figure the most effective way to check everyone's login hours
per week, or possibly per day. so far, i have done
last username > txt
open txt as *txt csv under star office, and then adding the last 3 columns..
this is as the columns are not evenly seperated by tab, only by space.
however, i hope to be able to write a script to do so at the command line,
so I can iteratively read off everyone's login patterns to know who is
loafing
would someone like to comment how i should get started?
i assume it should be something close to - last | awk{print $6 " " $7}
but i guess i have to incorporate sed and awk to be able to grep the last
column.
regards,
joshua_au@hotmail.com
- Next message: joshua: "Re: rm - Arguments too long"
- Previous message: Tony Walton: "Re: TIMEZONE bug in Solaris??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|