Question: UNIX CODING Requirements: Create a contact book using the bourne-again shell. You will create a shell script and a data file. Use the following naming
UNIX CODING
Requirements:
Create a contact book using the bourne-again shell. You will create a shell script and a data file.
Use the following naming convention:
1) Shell script should be named as CS355_PROJECT2_GROUPXX
2) Data file should be named as CONTACT_BOOK_GROUPXX
Put a comment on each line of code.
Description: It should use functions to perform the required tasks. It should be menu-based, allowing the user the options of:
1) Search
2) Add entries
3) Remove
4) Edit
5) Exit
1) Search When the user searches for "David", the script should identify and display all "David" records. It is up to you whether this search is in First Name only, or in other data field(s), such as phone number, city, state, etc.
2) Add Input the data record containing data fields (Last Name, First name, Phone, Email, street, city, etc). If it appears to be a duplicate, remove the existing record. Save the record into the data file when the user confirms, and display a message such as The record is added successfully! . CS 355 Unix Due: Monday, 12:59 pm December 4, 2017
3) Remove Enter search criteria, narrow it down to one record, confirm, then remove that record, and display a message such as The record is removed successfully! .
4) Edit Enter the search criteria, narrow it to one record, confirm, then edit the specific data field(s) you want to update, confirm, then display the updated record.
5) Exit When complete the desired operation(s), the user may want to select exit to terminate the execution of the program. Without this option, the user will always be provided the menu options to make a choice.
Note: For options 1) to 4), you should also include a function cancel, which allow the user to enter a special entry to terminate the process of option selected, and then they are directed to the option menu to make a new choice. This is up to you how the functionality is realized.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
