Create an executable for a program in an interpreted language: Difference between revisions
Create an executable for a program in an interpreted language (view source)
Revision as of 07:02, 18 September 2022
, 1 year ago→{{header|jq}}
Line 385:
The trick to using jq in the shebang line is NOT to specify an argument for the -f option.
<pre>
#!/usr/bin/env jq -
</pre>
Alternatively, the full pathname can be specified, e.g. /usr/local/bin/jq -f
Other jq options can also be specified.
The file with the shebang line and program must of course be made executable (e.g. by running `chmod +x FILENAME`).
|