Code Golf: Code Golf: Difference between revisions
added sh
(Add lang example) |
MikarGibbros (talk | contribs) (added sh) |
||
Line 479:
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}}==
|