view bin/mirrorgo @ 11304:ab489b19b975

<int-e> ` echo \'#! /bin/bash\' > bin/morse-decode; echo \'args_or_input | /hackenv/lib/morse-decode\' >> bin/morse-decode # for sanity
author HackBot
date Fri, 05 Jan 2018 00:55:01 +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