Dotfiles/bin/.bin/weather
2019-09-12 21:30:29 +01:00

7 lines
150 B
Bash
Executable file

#!/usr/bin/bash
initial=$@
place=${initial// /+}
if [[ "$place" == "" ]]; then
place="Cheltenham"
fi
curl "wttr.in/$place" 2> /dev/null | head -n -2