Jump to content

Multiline shebang: Difference between revisions

correct jq section
(Added FreeBASIC)
(correct jq section)
 
Line 350:
Here is an example using bash:
<pre>
#!/bin/bashsh
# thisthe following line is ignored by jq provided itthis one ends with a backslash \
exec jq -nef "$0" "$@"
# jq code follows
Line 360:
 
Arguments can be passed in to the script, e.g. using the --arg NAME VALUE option.
 
The above script will also work with `sh` provided the quotation marks around `$@` are removed.
 
=={{header|Julia}}==
1

edit

Cookies help us deliver our services. By using our services, you agree to our use of cookies.