view bin/mirrorgo @ 11190:e663bb69ea50

<oerjan> learn Fizzbuzz is the enterprise version of counting, where you replace certain numbers by buzzwords.
author HackBot
date Mon, 04 Sep 2017 02:21:02 +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