Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Enter the following text into the familydatabase.sh file. As you are typing the contents, ensure that you understand the purpose of each line (reviewing the
Enter the following text into the familydatabase.sh file. As you are typing the contents, ensure that you understand the purpose of each line (reviewing the chapter contents and appropriate man pages as necessary). When finished, save and quit the vi editor. #!/bin/bash while true do clear echo -e "What would you like to do? Add an entry (a) Search an entry (s) Quit (g) Enter your choice (a/s/q) -->\c" read ANSWER case SANSWER in aA) echo -e "Name of the family member --> lc" read NAME echo -e "Family member's relation to you -->\c" read RELATION echo -e "Family member's telephone number --> Ich read PHONE echo "$NAME\tSRELATION\t $PHONE" >> database SS ) echo "What word would you like to look for? --> \c" read WORD grep "SWORD" database sleep 4 910) exit echo "You must enter either the letter a ors." sleep 4 esac done 16. At the command prompt, type chmod u+x familydatabase.sh and press Enter. Next, type /familydatabase.sh at the command prompt and press Enter. Type a and press Enter when prompted and supply the appropriate values for a family member of your choice. Does the menu continue to appear when you have finished entering your record? Type a and press Enter and supply the appropriate values for a different family member. Type s and press Enter and supply a piece of information you previously entered for a family member to see the results. Type x and press Enter to view the usage error. Finally, type q and press Enter to quit your shell script
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started