diff --git a/01-read_input_CW.sh b/01-read_input_CW.sh new file mode 100644 index 00000000..f5cde79c --- /dev/null +++ b/01-read_input_CW.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Hello, Calina! What state are you from?" +read state +echo "Wow, $state sounds like a cool place!" diff --git a/04-life.sh b/04-life.sh index 537da386..9d861a97 100644 --- a/04-life.sh +++ b/04-life.sh @@ -14,3 +14,12 @@ fi # exercise: write a script that prints whether it is # morning or not + +echo "What hour of day is it (0-24)?" +read hour + +if [ "$hour" -ge 1 ] && [ "$hour" -le 11 ]; then + echo "It is morning" +else + echo "It is NOT morning" +fi diff --git a/images/after-merging.png b/images/after-merging.png new file mode 100644 index 00000000..16a737fc Binary files /dev/null and b/images/after-merging.png differ diff --git a/images/two-branches.png b/images/two-branches.png new file mode 100644 index 00000000..cf41976f Binary files /dev/null and b/images/two-branches.png differ