Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlf3.gvl.unisys.com!burdvax!wrp From: wrp@PRC.Unisys.COM (William R. Pringle) Newsgroups: comp.unix.shell Subject: Re: the #! notation Message-ID: <16209@burdvax.PRC.Unisys.COM> Date: 22 Jan 91 02:43:19 GMT References: <1991Jan16.162705.580@cid.aes.doe.CA> <1991Jan21.174803.6661@mp.cs.niu.edu> Distribution: na Organization: Unisys Corporation, Paoli Research Center; Paoli, PA Lines: 17 Incidentally, the entire line (except for the #!) is passed to the "shell" specified. This means that you can pass arguments to the shell. It also means that you can add the following line to the top of an awk script: #!/bin/awk -f Since # is a comment for awk, you can make this file executable and run it directly from the shell, or specify is as a script file: awk -f foobar.awk OR: foobar.awk Bill Pringle wrp@prc.unisys.com