From 72b99d62e1f1cc5187630ae3cfc35b12a59c0430 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 18 Aug 2022 17:21:31 +0200 Subject: update --- .local/bin/status/sb-forecast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/status/sb-forecast b/.local/bin/status/sb-forecast index 49ef4f4..b022048 100755 --- a/.local/bin/status/sb-forecast +++ b/.local/bin/status/sb-forecast @@ -15,8 +15,8 @@ getweather() { printf "%s%s %s" \ "$(cat $weatherglyph)" \ "$(cat $moonglyph)" \ - "$(sed '16q;d' "$weatherreport" | grep -wo "[0-9]*%" | sort -rn | sed "s/^//g;1q" | tr -d '\n')" + "$(sed '16q;d' "$weatherreport" | grep -wo "[0-9]*%" | sort -rn | sed "s/^/ /g;1q" | tr -d '\n')" sed '13q;d' "$weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | - awk '{print " " $1 "/" $2 "°C" moon}' + awk '{print "  " $1 "/" $2 "°C" moon}' -- cgit v1.2.3