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
3 changes: 3 additions & 0 deletions 01-read_input_copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "Hello! This is Hina Luna."
36 changes: 16 additions & 20 deletions 11-song.sh
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
#!/bin/sh


while [ true ]; do

# you can show a prompt with the read command
read -p "Do rae mi fa so la ti do? (q to end) > " note
read -p "Red Orange Yellow Green Indigo Violet? (q to end) > " color

case $note in
case $color in
# each case matches a pattern
do|Do)
echo "Doe a deer a female deer"
red|Red)
echo "Life"
;;
rae|Rae)
echo "Ray a drop of golden sun"
;;
mi|Mi)
echo "Me a name a call myself"
orange|Orange)
echo "Healing"
;;
fa|Fa)
echo "Far a long long way to run"
yellow|Yellow)
echo "Sunlight"
;;
so|So)
echo "So a note that follows fa"
green|Green)
echo "Nature"
;;
la|La)
echo "La a note that follow so"
indigo|Indigo)
echo "Serenity"
;;
ti|ta)
echo "Tea I drink with jam and bread"
violet|Violet)
echo "Spirit"
;;
q)
echo "Hope you enjoyed the sound of music"
echo "Over the Rainbow~~~"
exit 0
;;
*)
echo "Not a note"
echo "Not a color in the given prompt"
;;
esac

Expand Down
Binary file added afterParallel.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 parallelBranches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.