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
15 changes: 15 additions & 0 deletions 01-read_input.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# read the name of the user and print hello

echo "Hi there! Please tell me your full name:"
read name
echo "It's nice to meet you, $name"

# single quotes prevent the expansion of the variable
echo 'What city do you live in?'
read city
echo "$city sounds like a wonderful place!"


# exercise: write a script that asks the user for a
# filename and create an empty file named after it
1 change: 1 addition & 0 deletions Ademola_Akiwowo/my_name.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "Hello from Ademola Akiwowo!"
Binary file added after-merge-graph.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 two-branches-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.