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: <1895@vdsvax.steinmetz.UUCP> Date: Fri, 26-Jun-87 17:01:35 EDT Article-I.D.: vdsvax.1895 Posted: Fri Jun 26 17:01:35 1987 Date-Received: Sat, 27-Jun-87 11:03:23 EDT References: > <2211@bunker.UUCP> <1097@mtune.ATT.COM> <21681@sun.uucp> <7180@mimsy.UUCP> <1877@vdsvax.steinmetz.UUCP> Reply-To: barnett@ge-crd.arpa (Bruce G Barnett) Organization: General Electric CRD, Schenectady, NY Lines: 37 In article <1877@vdsvax.steinmetz.UUCP> I wrote: >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. ^^^^^^^^^^^^^^^^^^^^ Yes, I did try #!/bin/awk -f I STILL get the "bail" error: Exhibit A, Ultrix 1.2: csh >cat t.awk #!/bin/awk -f BEGIN { print "Begin"} { print; } END { print "End"} csh> awk -f t.awk t.awk awk: syntax error near line 1 awk: bailing out near line 1 I also tried "#!/bin/awk -f -" Does someone have an invocation that WORKS? Why am I "bailing out"? -- 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."