view bin/metar @ 12167:2a48402e037e draft

<oerjan> revert
author HackEso <hackeso@esolangs.org>
date Wed, 20 Nov 2019 04:13:16 +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}"