Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 08-count.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions 14-welcome.sh
Original file line number Diff line number Diff line change
@@ -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"

Binary file added DfBranch2_noConficts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DfBranchScreenShot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.