Skip to content

Instantly share code, notes, and snippets.

View ecesar88's full-sized avatar
💭
Kernel panic - not syncing

Erick Cesar ecesar88

💭
Kernel panic - not syncing
View GitHub Profile
@ecesar88
ecesar88 / metar.sh
Created January 28, 2019 01:43 — forked from komasaru/metar.sh
Bash script to get a METAR information.
#!/bin/bash
# 引数(ICAO コード)不正なら終了
if [[ ! "$1" =~ [0-9A-Z]{4} ]]; then
echo "Wrong argument!"
exit
fi
# URL("decode" データ)(以下のどちらか)
URL="http://weather.noaa.gov/pub/data/observations/metar/decoded/"