diff --git a/08-count.sh b/08-count.sh index c09d7cae..0aa657f6 100644 --- a/08-count.sh +++ b/08-count.sh @@ -15,3 +15,15 @@ done # exercise: Loop over some type of files and use the # "grep" UNIX command to find snippets of strings in them. +for file in *.sh; do + echo "Searching for 'echo' in $file..." + + grep -n "echo" "$file" + + if [ $? -eq 0 ]; then + echo "'echo' found in $file" + else + echo "'echo' not found in $file" + fi + +done \ No newline at end of file diff --git a/14-welcome.sh b/14-welcome.sh new file mode 100644 index 00000000..2f1ab89c --- /dev/null +++ b/14-welcome.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# read the name of the user and print hello +echo "Hello! My name is David Flores" +echo "Hello! What is your name" +read name +echo "Welcome, $name" + diff --git a/DfBranch2_noConficts.png b/DfBranch2_noConficts.png new file mode 100644 index 00000000..bd618ed8 Binary files /dev/null and b/DfBranch2_noConficts.png differ diff --git a/DfBranchScreenShot.png b/DfBranchScreenShot.png new file mode 100644 index 00000000..7cf02431 Binary files /dev/null and b/DfBranchScreenShot.png differ