Bash, 15
- 3-8 bytes saved thanks to @DPD-.
echo
{Y..b..8}
#Pure BashThere is a CR character immediately preceding the {
. This is probably not rendered meaningfully by the browser.
In real terms, 23this outputs "CRYSPACECRa". The CR (carriage return) moves the cursor back to the beginning of the line, and so the a
overwrites the y
.
r=({Y..b})
echo ${r[8]}
CreatesThis doesn't render correctly in TIO, so there is an additional pipe to col -b
to make the cursor movements absolute.
To enter this array and displaysat the 8th memberterminal:
Y Z [ ] ^ _ ` a b
- type
echo
SPACE - type CTRL-V CTRL-M
- type
{Y..b..8}