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

echo "Hello! My name is Shazmin"

9 changes: 9 additions & 0 deletions 04-life.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ fi

# exercise: write a script that prints whether it is
# morning or not

echo "What time is it (hour 0-24)"
read hour

if [ "$hour" -ge 5] && [ "$hour" -lt 12]; then
echo "Its morning!!!!"
else
echo "its not morning"
fi