Multiline shebang: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Mark as broken) |
No edit summary |
||
Line 96:
exec clisp -q -q $0 $0 ${1+"$@"}
|#</lang>
=={{header|Db2}}==
Based on the Postgres shebang, it works the same with IBM Db2.
<lang sql>--() { :; }; exec db2 -txf "$0"
get instance;
connect;
select 'Hello' from sysibm.sysdummy1;
values current date;</lang>
The db2profile should be loaded before executing the 'db2' command (. ~db2inst1/sqllib/db2profile).
The options used in the example are: t - delimited by semi colon, x - Suppress printing of column headings, f - Read from input file. For other options, you can execute 'db2 ? options', and change the shebang.
=={{header|E}}==
|