Code Golf: Code Golf: Difference between revisions

Content added Content deleted
(Add lang example)
(added sh)
Line 479: Line 479:


Note: Run BASIC is an interpreter, it does not generate executables.
Note: Run BASIC is an interpreter, it does not generate executables.

=={{header|sh}}==
{{works with|bash}}
The executable source code is 14 bytes by using script name instead of character literals:
<syntaxhighlight lang="sh">echo -n ${0:2}</syntaxhighlight>
To run:
<syntaxhighlight lang="sh">./Code\ Golf</syntaxhighlight>


=={{header|sed}}==
=={{header|sed}}==