-
Notifications
You must be signed in to change notification settings - Fork 0
/
case-script.sh
executable file
·58 lines (54 loc) · 1.07 KB
/
case-script.sh
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
51
52
53
54
55
#!/bin/sh
echo "Tell me how are you fealing today..."
read EMOTION
case $EMOTION in
amazing)
echo "Great! Then I will be of no help :)"
;;
good)
echo "Nice, I have a fun fact for you then, you prefer dogs or cats?"
read ANIMAL
case $ANIMAL in
dogs)
echo "Some dogs are fast enough to beat a cheeta in a race! :O"
;;
cats)
echo "Cats can jump 5 times their own height! :O"
;;
*)
echo "I don't know no $ANIMAL jokes :/"
;;
esac
;;
bad)
echo "Ahhh, that's no good, wanna hear a joke?"
read JOKE
case $JOKE in
yes)
echo "Knock, knock..."
read ANSWR
case $ANSWR in
"who's there?")
echo "Yo mama FAT and mine NTFS"
;;
*)
echo "Yo mood so bad you can't even answere correctly... good luck"
;;
esac
;;
no)
echo "ok."
;;
*)
echo "..."
;;
esac
;;
terrible)
echo "Damn Human, go here - https://www.recdit.com/r/aww and look at some kittens, I'll work for you"
;;
*)
echo "Emotion not recognized, try again"
;;
esac
echo "Program ended, have a great day!"