Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!koosh!bob From: bob@omni.com (Bob Weissman) Newsgroups: comp.unix.wizards Subject: Re: awk and shell question Summary: Use ypmatch, not ypcat | grep Keywords: awk sh Message-ID: <902@borabora.omni.com> Date: 19 Sep 89 18:37:38 GMT References: <1163@ispi.UUCP> <2412@netcom.UUCP> <2130@munnari.oz.au> Organization: OMNI Solutions, Mountain View, CA Lines: 13 In article <2130@munnari.oz.au>, ok@cs.mu.oz.au (Richard O'Keefe) writes: > Again, watch out for Yellow Pages; if you're using that you have to do > ypcat passwd | grep "^${LOGNAME}" | what-ever-you-want-here I hate to see this kind of inefficiency advertised. Use ypmatch $LOGNAME passwd | whatever instead. -- Bob Weissman UUCP: ...!{apple,pyramid,sgi,tekbspa,uunet}!koosh!bob Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.