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

echo "Hello! What is your name"
read JeanMakita
echo "Welcome, $JeanMakita"

# single quotes prevent the expansion of the variable
echo 'Your name was stored in $JeanMakita'

# 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 JeanMakita/bash_basics
Submodule bash_basics added at d40c2a
Empty file added [bash_basics]
Empty file.
12 changes: 12 additions & 0 deletions clone.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# read the name of the user and print hello

echo "Hello! What is your name"
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
9 changes: 9 additions & 0 deletions my_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
echo "JeanMakita"

echo "Hello! Have a great day ahead!"

for (( i=1; i<=5; i++ ))

do
echo "This is iteration $i"
done