awk and shell question

Greg Hinton hinton at netcom.UUCP
Mon Sep 18 04:17:13 AEST 1989


In article <1163 at ispi.UUCP> jbayer at ispi.UUCP (Jonathan Bayer) writes:
> [ . . . . ]
>I have to get the user id, and then get the user description from /etc/passwd.
> [ . . . . ]

How about this:
grep \^`who am i | cut -d' ' -f1`\: /etc/passwd | cut -d: -f5

-- 
Greg Hinton
DOMAIN: hinton at netcom.uucp
UUCP: uunet!apple!netcom!hinton



More information about the Comp.unix.wizards mailing list