awk and shell question

Bob Weissman bob at omni.com
Wed Sep 20 04:37:38 AEST 1989


In article <2130 at munnari.oz.au>, ok at 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      <bob at omni.com>
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.



More information about the Comp.unix.wizards mailing list