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