view bin/metar @ 11488:cbd86e77f7c2 draft

<oerjan> ` mv bin/sledp bin/pled
author HackEso <hackeso@esolangs.org>
date Thu, 12 Apr 2018 04:23:08 +0100
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}"