Code Golf: Code Golf: Difference between revisions

m
sorting alphabetically
m (UNIX_Shell -> bash since UNIX_Shell already exists and it's code does not run on bash)
m (sorting alphabetically)
Line 101:
BEGIN{for(n=15162543273030444;n;n=int(n/80))printf"%c",111-n%80}</syntaxhighlight>
This should work with POSIX-compliant implementations (support for hex literals is not mandatory), in double-precision floating-point arithmetic.
 
=={{header|Bash}}==
{{works with|UNIX_Shell}}
The directly executable source code is 14 bytes by using its script name instead of character literals:
<syntaxhighlight lang="sh">echo -n ${0:2}</syntaxhighlight>
To run:
<syntaxhighlight lang="sh">./Code\ Golf</syntaxhighlight>
 
=={{header|BASIC256}}==
Line 479 ⟶ 486:
 
Note: Run BASIC is an interpreter, it does not generate executables.
 
=={{header|Bash}}==
{{works with|UNIX_Shell}}
The directly executable source code is 14 bytes by using its script name instead of character literals:
<syntaxhighlight lang="sh">echo -n ${0:2}</syntaxhighlight>
To run:
<syntaxhighlight lang="sh">./Code\ Golf</syntaxhighlight>
 
=={{header|sed}}==
4

edits