view bin/metar @ 11879:998bedd945f6 draft

<oerjan> ` mv bin/{\\!,interp}
author HackEso <hackeso@esolangs.org>
date Fri, 19 Jul 2019 04:10:38 +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}"