Example:
#!/usr/bin/awk -f
BEGIN {print "hello"}
Remember to chmod:
chmod +x ./awkscript.awk
Use #! in a shell script to select the program to run instead of the shell.
Example:
#!/usr/bin/awk -f
BEGIN {print "hello"}
Remember to chmod:
chmod +x ./awkscript.awk