Develop bash-script for the following questions: Q1. A script to read name, phone number and email from user and append

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Develop bash-script for the following questions: Q1. A script to read name, phone number and email from user and append

Post by answerhappygod »

Develop Bash Script For The Following Questions Q1 A Script To Read Name Phone Number And Email From User And Append 1
Develop Bash Script For The Following Questions Q1 A Script To Read Name Phone Number And Email From User And Append 1 (44.24 KiB) Viewed 40 times
Develop bash-script for the following questions: Q1. A script to read name, phone number and email from user and append it to a file phone_book.txt. The script should iteratively ask the user for data until the name is entered as "AAA" in which case, the script should stop iterating. (30 Marks) Q2. A script that reads a name from user and search for the name in a file phone_book.txt. Once found, display the name, number and email on screen. If the name does not exist, then display the message "Name does not exist!". If more than one name is found, then display all results in multiple lines. (70 marks) Note: ● The output has to be in the following format: Name: Phone: Email: ******** Your script should NOT be case sensitive, e.g. JoHn and john should be considered equal.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply