steeltown89
MIS
I'm using the "finger -s loginid" command on a SUN server to get the last time a user has logged in with their id. I need the first field (userid) and the date field extracted to a file. I have written a script to take the /etc/passwd file and run every userid through the finger -s command. I'm trying to capture only two fields and put a semicolon or something between the two fields into a new file. I am terrible with awk...and sed
Here is one of my records
zorman ??? pts/328 <Apr 8, 2003> 192.168.x.x
I would like to collect zorman and the date and put it into a format like so:
zorman;Apr 8, 2003
My goal is to automatically delete userids who have not logged into the system in x amount of time.
Any Ideas?
Here is one of my records
zorman ??? pts/328 <Apr 8, 2003> 192.168.x.x
I would like to collect zorman and the date and put it into a format like so:
zorman;Apr 8, 2003
My goal is to automatically delete userids who have not logged into the system in x amount of time.
Any Ideas?