view bin/metar @ 10254:5a6e97c9566d

<oerjan> sled bin/?//3itopic1=$(echo \'`\'"$topic" | sed "s/^``//")
author HackBot
date Wed, 15 Feb 2017 01:16: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}"