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: 10 additions & 2 deletions 09-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

# look up ip addresses of various search engines

servers="github.com youtube.com twitter.com reddit.com"

servers="google.com amazon.com hulu.com"

servers="apple.com microsoft.com openai.com"
angelica-branch

for server in $servers; do
nslookup $server
Expand All @@ -14,7 +18,11 @@ done
# traceroute, or nslookup with other options.

for server in $servers; do
ping $server
<<<<<<< HEAD
ping -c 3 $server
=======
nslookup $server
>>>>>>> angelica-branch
echo "----------------------------"
done

Binary file added after-merging.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions angelica.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# read the name of the user and print hello

echo "Hello! My name is Angelica"
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

echo "Hey $name, What is your filename?"
read filename
echo "You want $filename"
echo "Creating $filename ..."
touch $filename
echo "$filename creted"
ls
echo "Bye,bye"
Binary file added two-branches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.