view bin/metar @ 11791:39b54ea727fc draft

<oerjan> fetch share/UnicodeData.txt http://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt
author HackEso <hackeso@esolangs.org>
date Wed, 17 Apr 2019 23:52:44 +0000
parents 4fcebe1fd761
children
line wrap: on
line source

#!/bin/bash
icao="$(airport "$*" | sed -e "s/.*, //;s/)//" | shuf -n 1)"
echo You probably mean @metar "${icao:-$1}"