view bin/metar @ 12273:de2990eb5cdf draft

<kspalaiologos> `` rm /hackenv/bin/bfasm
author HackEso <hackeso@esolangs.org>
date Tue, 31 Dec 2019 17:45:31 +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}"