view bin/metar @ 11265:364f0d88ee3a

<oerjan> sled bin/learn_append//2s,s/.*;,,
author HackBot
date Tue, 12 Dec 2017 22:00:17 +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}"