forked from GGC-SD/bash_basics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpoem.sh
More file actions
50 lines (43 loc) · 1.33 KB
/
poem.sh
File metadata and controls
50 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
while [ true ]; do
#the repeating line of the Villanelle Poem
read -p "Are you having a bad day? (Yes or No)" poem
echo " "
#everytime you see the option of a different word type it or say "No" to get to the end.
case $poem in
Yes|yes)
echo "Don't fret, it is not all I have to say!(You or No)"
;;
You|you)
echo "Cheer up and keep your head up, (Can or No)"
;;
Can|can)
echo "take a break, smile, breathe, and get back on github.(Accomplish or No)"
;;
Accomplish|accomplish)
echo "if you dont understand dont worry you will get it, (Anything or No)"
;;
Anything|anything)
echo "It can be scary and lonely at times but you have to cut across(If or No)"
;;
If|if)
echo "so plant your feet, grit your teeth and show them who's boss(We or No)"
;;
We|we)
echo "if your unmotivated and cannot do it I will have to disagree (Believe or No)"
;;
Believe|believe)
echo "Yes, You Can Accomplish Anything If We Believe!!!"
;;
No|no)
echo "I am glad you are having a great day!!!!"
exit 0
;;
*)
echo "misspelled"
;;
esac
done
#Assignment: A Villanelle Style Poem for you Follow the instructions to the end of the poem
#if you are still having a bad day start again if not then reach the end of
#the message.