I want to get a user's real life name based to print during the login script.
I'm using currently the following command:
finger | grep $LOGNAME | head -1 | awk '{print $2 " " $3}'
Is there any better way? I did not see in finger
's man page that it has an argument to get only the real life name.
I'm using TCSH on a SunOs machine.