scripts/weather

11 lines
182 B
Text
Raw Permalink Normal View History

2024-11-12 19:39:05 -05:00
#!/bin/sh
# weather: Quickly check the weather forecast.
DEFAULT="grand+rapids"
CITY=$(echo "$1" | tr ' ' '+')
: "${CITY:=$DEFAULT}"
curl -s "https://wttr.in/$CITY" | head -n -2