diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index e28f22f..2a6440b 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -25,7 +25,7 @@ getdailyhighlow() { echo "$weatherdata" | sed '13q;d' | # Extract line 13 from file grep -o "m\\([-+]\\)*[0-9]\\+" | # Find temperatures in the format "m" sed 's/[+m]//g' | # Remove '+' and 'm' - sort -n -k 2n | # Sort in ascending order + sort -g | # Sort in ascending order sed -e 1b -e '$!d' # Extract the first and last lines }