I need to write a script to print out all user login activity. I know that the "last" command shows that information, however, I would like the output to look something like this:
Lets say user joe logged in 10 times and user sam logged in 25 times. I want output to be like this:
joe 10
sam 25
And nothing else. I could not find any flags for the last command at all.
Any help is appreciated =)
Lets say user joe logged in 10 times and user sam logged in 25 times. I want output to be like this:
joe 10
sam 25
And nothing else. I could not find any flags for the last command at all.
Any help is appreciated =)