view bin/metar @ 11536:3548980f4b00 draft

<oerjan> qued s,ed bin,wd ../bin,
author HackEso <hackeso@esolangs.org>
date Thu, 26 Apr 2018 22:00:27 +0100
parents aa29f6c3a587
children 4fcebe1fd761
line wrap: on
line source

#!/bin/bash
icao="$(airport "$*" | sed -e "s/.*, //;s/)//" | shuf -n 1)"
echo lambdabot: @metar "${icao:-$1}"