view bin/metar @ 10382:80035b119441

<shachaf> slwd np//s.ns.n problems.
author HackBot
date Fri, 10 Mar 2017 03:39:34 +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}"