view bin/metar @ 10939:5fdf8c07366b

<oerjan> mkx bin/help//\\? "$(echo "$1" | sed \'s/^[^`]/`&/\')"
author HackBot
date Sun, 21 May 2017 00:45:24 +0000
parents aa29f6c3a587
children 4fcebe1fd761
line wrap: on
line source

#!/bin/bash
icao="$(airport "$*" | sed -e "s/.*, //;s/)//" | shuf -n 1)"
echo lambdabot: @metar "${icao:-$1}"