view bin/metar @ 10256:d0d5bc896d19

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