forked from uvasds-systems/DS2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmadlib.sh
executable file
·28 lines (20 loc) · 1.23 KB
/
madlib.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
#!/bin/bash
clear
echo "Let's build a mad-lib!"
read -p "1. Name an unusual sport: " NOUN1
read -p "2. Give me a silly verb: " VERB1
read -p "3. Name a famouse person: " NOUN2
read -p "4. Give me an adjective: " ADJ1
read -p "5. Name a place: " NOUN3
read -p "6. Name a mode of travel: " NOUN4
read -p "7. Give me an adverb (ending in -ly): " ADVERB1
read -p "8. Name a plural noun of a group of people: " NOUN5
clear
echo "-----------------------------------------------------------------------------------------------------"
echo "My best friend peter loves to play a sport called $NOUN1. One day, he came across one of the
best players in the sport, $NOUN2. Peter was able to talk to him and they ended up hitting it off. $NO$
so facinated by Peter and his story that he invited him to go $VERB1 this upcomming weekend. And so th$
Peter travel through $NOUN4 to $NOUN2 's house which is located just outside $NOUN3. The day went $ADV$
midnight peter as he was entering back into his home was surprized by $NOUN5 who all sang happy birthd$
is the best week ever" said Peter. And so Peter $VERB1 all night and lived happly ever after. THE END
echo "-----------------------------------------------------------------------------------------------------"