I want to understand the use of shebang in an awk file named tool
.
Suppose I have a shebang and make the file executable
#! /bin/awk -f
I can run the awk script with
tool file
or with
tool -v descriptor=1 file
Would it be possible to change FS
, for instance
tool -v descriptor=1 FS="," file
Would I call tool the same way inside a bash script?
Would one be able to use
awk -f tool -v descriptor=1 file
within a bash script ?