view bin/metar @ 11947:53d94403e9f7 draft

<fizzie> rm bin/js
author HackEso <hackeso@esolangs.org>
date Wed, 18 Sep 2019 11:39:11 +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}"