Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!netcom!hinton From: hinton@netcom.UUCP (Greg Hinton) Newsgroups: comp.unix.wizards Subject: Re: awk and shell question Summary: use cut(1) instead Keywords: awk sh Message-ID: <2412@netcom.UUCP> Date: 17 Sep 89 18:17:13 GMT References: <1163@ispi.UUCP> Reply-To: hinton@netcom.UUCP (Greg Hinton) Organization: NetCom Public Access Unix -- San Jose, CA Lines: 12 In article <1163@ispi.UUCP> jbayer@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@netcom.uucp UUCP: uunet!apple!netcom!hinton