From ac2cc4d8240923fdf90dfdc92e479ab1ff8cba36 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 15 Dec 2017 14:47:33 +1100 Subject: [PATCH] Updated Customizing Info (markdown) --- Customizing-Info.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Customizing-Info.md b/Customizing-Info.md index f8d73f1..1358f0d 100644 --- a/Customizing-Info.md +++ b/Customizing-Info.md @@ -115,7 +115,7 @@ prin "Date" "$(date)" prin "$(color 4)That's not my name" # Print the current weather -prin "Weather" "$(curl wttr.in/?0?q?T | awk '/°(C|F)/ {printf $3 $4 " ("a")"} /,/ {a=$0}')" +prin "Weather" "$(curl wttr.in/?0?q?T | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}')" ``` ### color @@ -202,7 +202,7 @@ print_info() { ### Display the current weather ```sh -prin "Weather" "$(curl wttr.in/?0?q?T | awk '/°(C|F)/ {printf $3 $4 " ("a")"} /,/ {a=$0}')" +prin "Weather" "$(curl wttr.in/?0?q?T | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}')" ``` ### Print color blocks on the top and bottom