I create executable scripts for gawk by using the following #!:
#!/usr/bin/gawk -f
However if I want to enable interval regular expressions I cannot seem to add --re-interval
or -W re-interval
in the #!.
#!/usr/bin/gawk --re-interval -f
#Above doesn't work
Is there a way to have a script activate this option without command line arguments, or a better way to enter the arguments so it works?
I am using cygwin if that matters for your solution
This isn't possible. See http://hibernia.jakma.org/~paul/awk-faq.html#script-args for the reason and an alternative.