I want to get a list that shows how many times each user logged in to the system.
Something along the lines
user1 45 user2 134 user3 200
It'll output something like:
When the username column contain 'reboot' it means system reboot, not a login. When the username column contain wtmp or it's empty it's also not a login.
Similar to dvb's answer but with awk.