Is gawk in /bin or /usr/bin usually? I would go with
#!/usr/bin/env gawk but then I can't use arguments. Right now I'm using
#!/bin/gawk -f. The script is very long and contains a lot of single quotes and works with stdin.
The GNU Awk manual has section 1.1.4 Executable awk Programs where it uses #!/bin/awk in its example but goes on to say:
Note that on many systems
awkmay be found in
/usr/bininstead of in
/bin. Caveat Emptor.
What do most people do? I've read sed is supposedly standardized in /bin whereas perl is supposedly standardized in /usr/bin (same page as sed link but they won't let me make a third link for this post). What about awk/gawk? Does anyone know which is more common or popular?