From 3cde9621e916cb3545673b732540a8a17062c3b7 Mon Sep 17 00:00:00 2001 From: nallabellisriparthu Date: Sat, 2 Sep 2023 10:09:47 -0700 Subject: [PATCH 1/4] commited day1-solution-script.sh --- day1-solution-script.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 day1-solution-script.sh diff --git a/day1-solution-script.sh b/day1-solution-script.sh new file mode 100755 index 0000000..7c17857 --- /dev/null +++ b/day1-solution-script.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Task 1 ( completed task 1 comments ) + +#Task 2 + +echo "DevOps Zero to Hero" # completed task 2 echo + +#Task 3 + +variables1="Hello" +variables2="Dosto" # completed task 3 Variabeles + +#Task 4 + +variables="$variables1,$variables2" +echo "$variables welcome to BashBlaze-7-Days-of-Bash-Scripting-Challenge" # completed task 4 Using variables + +#Task 5 + +echo "1. My current bash path - $BASH" +echo "2. Bash version I am using - $BASH_VERSION" +echo "3. PID of bash I am running - $$" +echo "4. My home directory - $HOME" +echo "5. Where am I currently? - $PWD" +echo "6. My hostname - $HOSTNAME" # Completed task 5 Using Built-in Variables + +#Task 6 + +echo "Files with .txt to list all the files with a specific extension in a directory" +ls *.txt +ls *.sh # completed task 6 Wildcards + + From 81b4d47f9083b9d63860f938de1a4752ccc82cd1 Mon Sep 17 00:00:00 2001 From: nallabellisriparthu Date: Sat, 2 Sep 2023 10:11:16 -0700 Subject: [PATCH 2/4] commitedd day1-solution-script.sh --- day1-solution-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day1-solution-script.sh b/day1-solution-script.sh index 7c17857..4a3e8d2 100755 --- a/day1-solution-script.sh +++ b/day1-solution-script.sh @@ -29,6 +29,6 @@ echo "6. My hostname - $HOSTNAME" # Completed task 5 Using Built-in Variables echo "Files with .txt to list all the files with a specific extension in a directory" ls *.txt -ls *.sh # completed task 6 Wildcards +ls *.sh # completed task 6 Wildcardss From 00e995516364370146a2795efba06101af6a7e99 Mon Sep 17 00:00:00 2001 From: nallabellisriparthu Date: Mon, 4 Sep 2023 09:37:01 -0700 Subject: [PATCH 3/4] added solution --- Challenges/Day_1/day1-solution.sh | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Challenges/Day_1/day1-solution.sh diff --git a/Challenges/Day_1/day1-solution.sh b/Challenges/Day_1/day1-solution.sh new file mode 100644 index 0000000..1bc0356 --- /dev/null +++ b/Challenges/Day_1/day1-solution.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Task 1 ( completed task 1 comments ) + +#Task 2 + +echo "DevOps Zero to Hero" # completed task 2 echo + +#Task 3 + +variables1="Hello" +variables2="Dosto" # completed task 3 Variabeles + +#Task 4 + +variables="$variables1,$variables2" +echo "$variables welcome to BashBlaze-7-Days-of-Bash-Scripting-Challenge" # completed task 4 Using variables + +#Task 5 + +echo "1. My current bash path - $BASH" +echo "2. Bash version I am using - $BASH_VERSION" +echo "3. PID of bash I am running - $$" +echo "4. My home directory - $HOME" +echo "5. Where am I currently? - $PWD" +echo "6. My hostname - $HOSTNAME" # Completed task 5 Using Built-in Variables + +#Task 6 + +echo "Files with .txt to list all the files with a specific extension in a directory" +ls *.txt +ls *.sh # completed task 6 Wildcardss + From 268c422d58b79dec651fccd443a3e850405be6f4 Mon Sep 17 00:00:00 2001 From: nallabellisriparthu <141666644+nallabellisriparthu@users.noreply.github.com> Date: Mon, 4 Sep 2023 09:47:24 -0700 Subject: [PATCH 4/4] Delete day1-solution-script.sh --- day1-solution-script.sh | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 day1-solution-script.sh diff --git a/day1-solution-script.sh b/day1-solution-script.sh deleted file mode 100755 index 4a3e8d2..0000000 --- a/day1-solution-script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# Task 1 ( completed task 1 comments ) - -#Task 2 - -echo "DevOps Zero to Hero" # completed task 2 echo - -#Task 3 - -variables1="Hello" -variables2="Dosto" # completed task 3 Variabeles - -#Task 4 - -variables="$variables1,$variables2" -echo "$variables welcome to BashBlaze-7-Days-of-Bash-Scripting-Challenge" # completed task 4 Using variables - -#Task 5 - -echo "1. My current bash path - $BASH" -echo "2. Bash version I am using - $BASH_VERSION" -echo "3. PID of bash I am running - $$" -echo "4. My home directory - $HOME" -echo "5. Where am I currently? - $PWD" -echo "6. My hostname - $HOSTNAME" # Completed task 5 Using Built-in Variables - -#Task 6 - -echo "Files with .txt to list all the files with a specific extension in a directory" -ls *.txt -ls *.sh # completed task 6 Wildcardss - -