view bin/metar @ 10508:1fd1b7771a11

<boily> slwd morse//s,/ -\\. ,/ -. .. ,
author HackBot
date Sat, 25 Mar 2017 12:13:07 +0000
parents 631b602f7856
children aa29f6c3a587
line wrap: on
line source

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