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
10 changes: 10 additions & 0 deletions 01-read_input.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ 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
# Ask the user for a filename
echo "Please enter a filename:"
<<<<<<< HEAD
read filename

# Create an empty file with the provided filename
touch $filename

echo "File '$filename' has been created."

Binary file added Part II screen shot.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 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.