view bin/metar @ 11459:8eeb029d092b

<oerjan> rm bin/5?
author HackBot
date Fri, 16 Mar 2018 21:46:44 +0000
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}"