I\'m trying to make an awk file executable. I\'ve written the script, and did chmod +x filename
. Here is the code:
#!/bin/awk -v
\'TOPNUM = $1
Actually this form is more preferrable:
#! /bin/awk -E
Man told:
-E Similar to -f, however, this is option is the last one processed and should be used with #! scripts, particularly for CGI applications, to avoid passing in options or source code (!) on the command line from a URL. This option disables command-line variable assignments