view bin/mirrorgo @ 12265:984c8295238b draft

<b_jonas> slashlearn aoc/Advent of Code (AoC) is a series of programming puzzles that some regulars enjoy, found at "https://adventofcode.com/2019/about".
author HackEso <hackeso@esolangs.org>
date Mon, 16 Dec 2019 22:49:45 +0000
parents b9ced0a7783a
children
line wrap: on
line source

#!/bin/bash
declare {{a..h},{j..t}}="$((i++))" letters=({{a..h},{j..t}}); while read -r; do echo "${letters[18-${REPLY:0:1}]}$((20-${REPLY:1}))"; done