Mercurial > repo
view bin/metar @ 11151:994a75c5d4dc
<oerjan> sled bin/singlecode//2cmulticode "$@" | grep \'^U+\' | sed \'s/.*/[&]/\' | fmt -w500
author | HackBot |
---|---|
date | Tue, 08 Aug 2017 23:11:52 +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}"