view bin/metar @ 10240:655956824d41

<oerjan> sled bin/pastequotes//s,; e.*, | paste; else url quotes; fi,
author HackBot
date Mon, 13 Feb 2017 00:40:41 +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}"