view bin/metar @ 10338:b3881dfde8d6

<oerjan> sled bin/\xd8\x9f//s,^,\\\\,
author HackBot
date Fri, 24 Feb 2017 01:44:11 +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}"