view bin/metar @ 12101:2b3cc639ed6d draft

<fizzie> ` rm /hackenv/bin/show /hackenv/lib/dcc # this one just won\'t work
author HackEso <hackeso@esolangs.org>
date Sat, 16 Nov 2019 22:29:40 +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}"