I’m trying to build a small script which would print the following when run:
Name1, Lastname1 23 2001-03-01
Name2, Lastname2 22 2001-01-16
The first part is the real name from the /etc/passwd file, the second part how many times logged on, and the date when last logged on in the format yyyy-mm-dd.
I would also like to be able to enter a user name at the command line and bring the records for that user such as:
$filename.pl jsmith
John Smith 39 2001-03-12
Thanks for the help.