The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 04-20-2005
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,121
Quote:
Originally Posted by jyoung
I found the command lsuser and did this to get a list of users and the last time logged in:
lsuser -a time_last_login ALL > users.txt

Which gives me this result:
username time_last_login=1046099951
username time_last_login=1074022275
username time_last_login=899997008
.
.
username time_last_login=1046099951
username time_last_login=1074022275
username time_last_login=899997008

Is it possible to get the last date logged in from the above?
when you say 'get the last date' what do you exatcly mean?
the 'date' is already there preceeded by '=' - you should be easily be able to use sed/awk to get the value.