view bin/metar @ 12294:abacb968c310 draft

<kspalaiologos> `` rm -f /hackenv/bin/bfi
author HackEso <hackeso@esolangs.org>
date Sat, 04 Jan 2020 09:50:24 +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}"