Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uunet!steinmetz!vdsvax!barnett From: barnett@vdsvax.steinmetz.UUCP (Bruce G Barnett) Newsgroups: comp.unix.wizards Subject: Re: #! magic number Message-ID: <1877@vdsvax.steinmetz.UUCP> Date: Thu, 25-Jun-87 10:02:56 EDT Article-I.D.: vdsvax.1877 Posted: Thu Jun 25 10:02:56 1987 Date-Received: Sat, 27-Jun-87 03:26:16 EDT References: > <2211@bunker.UUCP> <1097@mtune.ATT.COM> <21681@sun.uucp> <7180@mimsy.UUCP> Reply-To: barnett@vdsvax.steinmetz.UUCP (Bruce G Barnett) Organization: General Electric CRD, Schenectady, NY Lines: 24 In article <7180@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: > #! /bin/awk NR > 1 { print } > > [recorded message] Good example. But I cannot figure out how ELSE to use this feature with awk. How can I create a t.awk that contains an awk script, and make it executable? That is, in file t.awk, I have #!/bin/awk -f t.awk No matter what I try, I get the "bailing out near line 1" error. And could someone explain to me why the first line isn't treated as a comment within the awk script? -- Bruce G. Barnett (barnett@ge-crd.ARPA) (barnett@steinmetz.UUCP) -- "The difference between a Buddha and an ordinary man is that one knows the difference and the other does not."