the #! notation

William R. Pringle wrp at PRC.Unisys.COM
Tue Jan 22 13:43:19 AEST 1991


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 at prc.unisys.com



More information about the Comp.unix.shell mailing list