Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Linux Shell Scripting [Introduction to Linux using awk, sed, vi, if elif else, cut, pipes etc] (no array, no grep) Write a menu for a
Linux Shell Scripting [Introduction to Linux using awk, sed, vi, if elif else, cut, pipes etc] (no array, no grep)
Write a menu for a phone book system. A- Enter contact information B- Search using a name C- Search using phone number D- Exit Use case statement for reading choices. If choice A is selected then run another script to read contact information. If Bis selected run another script that search using a name. If C is selected run another script to search using phone number. Script for part-A: clear the screen and display: 1- First Name 2- Last Name 3- Phone 4- Email: 5- Exit Store all information in a file and repeat asking the same questions unless the user selects Exit. Then yo should go back to the main menu Script for part-B: Read the name and use awk to search in the file for the given name and display the phone number of that person Script for part-C: Read the phone and use awk to search in the file for the given phone and display the email and name of that personStep 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