view bin/metar @ 12058:2ad48d3d6178 draft

<fizzie> sled /hackenv/bin/gs2c//s|python bin|python $HACKENV/bin|
author HackEso <hackeso@esolangs.org>
date Sat, 16 Nov 2019 21:44:24 +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}"