From 55b210ca868a1207c77ed407618d5659e8df0902 Mon Sep 17 00:00:00 2001 From: kwiggins9 Date: Fri, 24 Oct 2025 22:07:06 -0400 Subject: [PATCH 1/2] Added its not morning statement to 04-life.sh --- 04-life.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/04-life.sh b/04-life.sh index 537da38..c9df683 100644 --- a/04-life.sh +++ b/04-life.sh @@ -8,9 +8,15 @@ if [ "$meaning" -eq 42 ]; then else echo "Awww... You don't know the meaning of life" fi +if [ "$hour" -ge 5 ] && [ "$hour" -lt 12 ]; then + echo "Good morning!" +else + echo "It’s not morning right now." +fi # here are some other arithemetic comparison operators # -eq -ne -gt -ge -lt -le # exercise: write a script that prints whether it is # morning or not + From b798c98f3a533ebb0d58d88a69d38470ae15d7c7 Mon Sep 17 00:00:00 2001 From: kwiggins9 Date: Fri, 24 Oct 2025 22:16:21 -0400 Subject: [PATCH 2/2] Alternate version using seq command --- 04-life.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-life.sh b/04-life.sh index c9df683..afc2af4 100644 --- a/04-life.sh +++ b/04-life.sh @@ -11,7 +11,7 @@ fi if [ "$hour" -ge 5 ] && [ "$hour" -lt 12 ]; then echo "Good morning!" else - echo "It’s not morning right now." + echo "It’s not evening right now." fi # here are some other arithemetic comparison operators