view bin/metar @ 12269:00ab7b8652c5 draft

<fizzie> mkx /hackenv/bin/guile///usr/bin/guile -c \'(display \'"$*"\')\'
author HackEso <hackeso@esolangs.org>
date Thu, 19 Dec 2019 20:00:51 +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}"