view bin/metar @ 11081:f18bdcf3b649

<int-e> learn The password of the month is blowin\' in the wind.
author HackBot
date Tue, 11 Jul 2017 07:03:25 +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}"