in reply to Reporting last login according to wtmp for selected users

You may want to take a look at my module Sys::Lastlog - this includes an example program plastlog that may do what you want.

/J\