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_copy_cli - Copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

echo " hello Keyvaun!"
echo "How old are you?"
read 23
echo 'Thanks Keyvaun ! I see you are ' $age ' years old'

echo "What school do you currently attend?"
read GGC
echo 'Nice! ' $school ' sounds like a great place to learn.'
13 changes: 13 additions & 0 deletions 05-grade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,16 @@ fi
# that prints "it's cold" if the temperature is < 40
# it's chilly if < 60, it's okay if < 70 and, it's hot for
# everything else
echo "What is the temperature outside?"
echo "Give a numerical answer:"
read temp

if [ $temp -le 40 ]; then
echo "it's cold"
elif [ $temp -le 60 ]; then
echo "it's chilly"
elif [ $temp -le 70 ]; then
echo "it's okay"
else
echo "it's hot"
fi