last with year
2007-12-25 3:40:00
Using the last command in solaris we return the following rows. I am
missing something - the year.
Does anybody know how to extract the year from 'last' or have some code
that searches through wtmpx and extracts the year.
username1 pts/2 150.207.16.109 Thu Jul 8 15:47 - 15:59 (00:12)
username2 pts/38 150.207.68.176 Thu Jul 8 15:42 - 16:10 (00:28)
username3 pts/30 150.207.176.140 Thu Jul 8 15:40 - 16:41 (01:01)
username4 pts/3 150.207.14.150 Thu Jul 8 15:38 - 16:35 (00:56)
username5 pts/22 150.207.14.177 Thu Jul 8 15:29 - 15:47 (00:18)
Thanks,
--
Brett Hales <brett.hales at baesystems.com>
Comments
Got something to say?
You must be logged in to post a comment.

