From b9285a86ecbd7e8669a95da812fa654dc3f86878 Mon Sep 17 00:00:00 2001 From: woodyum Date: Fri, 13 Sep 2024 15:55:28 -0400 Subject: [PATCH 1/3] I modified 01-read_input.sh with new commands --- bash_basics/01-read_input.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bash_basics/01-read_input.sh diff --git a/bash_basics/01-read_input.sh b/bash_basics/01-read_input.sh new file mode 100644 index 00000000..438445b4 --- /dev/null +++ b/bash_basics/01-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, $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 From fd7125aad5c74626be2f3751ab7f09e0773600fe Mon Sep 17 00:00:00 2001 From: woodyum Date: Fri, 20 Sep 2024 12:14:44 -0400 Subject: [PATCH 2/3] updated new words to the bash script --- bash_basics/01-read_input.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_basics/01-read_input.sh b/bash_basics/01-read_input.sh index 438445b4..6e44ef26 100644 --- a/bash_basics/01-read_input.sh +++ b/bash_basics/01-read_input.sh @@ -3,7 +3,7 @@ echo "Hello! What is your name" read name -echo "Welcome, $name" +echo "Your name is $name" # single quotes prevent the expansion of the variable echo 'Your name was stored in $name' From ec6895006d97341751669efb3d06727b3e5abb9f Mon Sep 17 00:00:00 2001 From: woodyum Date: Fri, 20 Sep 2024 12:29:04 -0400 Subject: [PATCH 3/3] Test changes 2 --- bash_basics/01-read_input.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_basics/01-read_input.sh b/bash_basics/01-read_input.sh index 6e44ef26..59105c6e 100644 --- a/bash_basics/01-read_input.sh +++ b/bash_basics/01-read_input.sh @@ -3,7 +3,7 @@ echo "Hello! What is your name" read name -echo "Your name is $name" +echo "Your full name is $name" # single quotes prevent the expansion of the variable echo 'Your name was stored in $name'