Unix script to parse password file information
Posted on 2007-03-29
I am trying to create a script that will pull information from the comment field in the password file, What I want to do is:
for every entry in "ls /home" I want to get the first initial and the last name from the First Last name entry in the comment field of the password file. The username would work in most cases but in some cases the username is truncated to 8 char, so for that reason I need to get this information.
so in a case like the above example, I want the output of jalberson