This may not be a bug, but it seems like one to me.
Script:
#!/bin/gawk -v num=$1 -f
BEGIN {
print "num=" num
}
When I try to execute this script as follows why does it say that 'num' is an illegal variable?
./myscript <some-number> <some-text-file>
Is '-f' the only allowable switch for gawk within an executable format? I can't find any documentation addressing this specific situation.
Thanks for any help you can give.
Mike