diff --git a/01-read_inputH.sh b/01-read_inputH.sh new file mode 100644 index 0000000..a47fda3 --- /dev/null +++ b/01-read_inputH.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# read the name of the user and print hello + +echo "Hello! What is your name" +read name +echo "Welcome, $name" + +# single quotes prevent the expansion of the variable +echo "Your name was stored in $name" + +# exercise: write a script that asks the user for a +# filename and create an empty file named after it diff --git a/04-life.sh b/04-life.sh index 537da38..eb21d5b 100644 --- a/04-life.sh +++ b/04-life.sh @@ -14,3 +14,10 @@ fi # exercise: write a script that prints whether it is # morning or not +now=$(date +%H) + +if [ "$now" -lt 12 ]; then + echo "It is morning" +else + echo "It is not morning" +fi diff --git a/after-merging graph.png b/after-merging graph.png new file mode 100644 index 0000000..17d6a76 Binary files /dev/null and b/after-merging graph.png differ diff --git a/git assignment 3pt2-network.png b/git assignment 3pt2-network.png new file mode 100644 index 0000000..172eb3d Binary files /dev/null and b/git assignment 3pt2-network.png differ