home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / wizards / 3347 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  854 b 

  1. Path: sparky!uunet!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!pa.dec.com!weir.pa.dec.com!ed
  2. From: ed@weir.pa.dec.com (Ed Gould)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: Making ``.plan'' EXECUTE a Program ???
  5. Message-ID: <1992Jul29.165005.5183@PA.dec.com>
  6. Date: 29 Jul 92 16:50:05 GMT
  7. References: <#q61Hejis8@atlantis.psu.edu> <31567@adm.brl.mil>
  8. Sender: news@PA.dec.com (News)
  9. Reply-To: ed@pa.dec.com
  10. Organization: DEC Network Systems Lab, Palo Alto
  11. Lines: 13
  12.  
  13. > awk is your friend.
  14.  
  15. And a good friend it is.  Good enough not to need egrep.
  16.  
  17. > ypcat passwd | egrep -v '^\+|ftp|demo' | awk -F: '{ print $1 }'
  18.  
  19. ypcat passwd | awk -F: '$1 !~ /\+|ftp|demo/ { print $1 }'
  20.  
  21. --
  22. Ed Gould      ed@pa.dec.com        Digital Equipment Corporation
  23. +1 415 688 1309      Network Systems Lab    505 Hamilton Ave, Palo Alto, CA  94301
  24.  
  25. "Unison is only one form of harmony." -- LW
  26.