Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!shlump.nac.dec.com!riscy.enet.dec.com!croton.nyo.dec.com!frank From: frank@croton.nyo.dec.com (Frank Wortner) Newsgroups: comp.unix.ultrix Subject: Re: awk -f - in Ultrix 4.0 Message-ID: <2183@riscy.enet.dec.com> Date: 27 Mar 91 16:55:57 GMT References: <20134@cbmvax.commodore.com> <20082@cbmvax.commodore.com> <1991Mar20.171431.13307@math.ucla.edu> <4678@osc.COM> <2182@riscy.enet.dec.com> Sender: newsdaemon@riscy.enet.dec.com Reply-To: frank@croton.nyo.dec.com (Frank Wortner) Organization: Digital Equipment Corporation Lines: 29 In article <20134@cbmvax.commodore.com>, grr@cbmvax.commodore.com (George Robbins) writes: > Which version of Ultrix adopts nawk? 4.0 > Does the "-f -" really work, or did some Ultrix person attempt to clarify > the man page and succeed in telling a lie. 8-) Would I lie to you? ;-) It really works. Here's a trivial example. Notice that I typed the program on standard input. Script started on Wed Mar 27 11:50:37 1991 $ nawk -f - /etc/hosts $1 !~ /#/ { print $1 } ^D127.0.0.1 16.69.128.12 16.69.128.17 16.69.128.242 16.70.192.1 16.69.128.21 $ script done on Wed Mar 27 11:51:09 1991