Programming Tips - Bash: a script to see if its hot outside

Date: 2023jun7 Language: bash Q. Bash: a script to see if its hot outside A. Here's a script that uses the wttr.in website
#!/bin/sh TEMP=$(curl -s 'http://wttr.in/saskatoon?format=%t' | sed -e 's/[^0-9\\.]//g') PRETTY=$TEMP°C if [[ $TEMP -gt 22 ]]; then echo $PRETTY IS hot exit 0 else echo $PRETTY is NOT hot exit 1 fi