From dcc9783b18b6c0e9441b29b833183f7feca86eca Mon Sep 17 00:00:00 2001 From: Zeshriel Date: Wed, 4 Sep 2024 17:59:01 -0400 Subject: [PATCH] making sure i understand git --- new_read_input.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 new_read_input.sh diff --git a/new_read_input.sh b/new_read_input.sh new file mode 100644 index 00000000..ac56171c --- /dev/null +++ b/new_read_input.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, Etienne" + +# 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