Write a script that asks the user to enter his name read


Shell Scripting -- Linux

Part-1 Write a script that asks the user to enter his name. Read the name. Then asks the user to enter the phone number. Then read the phone number. Append the name and phone number (separated by a comma) to a file called phones.

Part -2 Modify the above script so that it will have a loop and continuously ask the user to enter for name and phone number appending it to the file phones. Each time, you should ask the user if you want to continue (Y/N). Name this script script1. Test the script and make sure it runs OK.

Part 3-3 Create a script called phoneMenu to display a menu of choices as follows:

Enter Data

Show names

Show phone numbers

Then display the command saying please enter the choice. Read the choice.

If the choice is 1, then execute script1.

If the choice is 2 then write the command to cut the names from file phoneMenu and display that.

If the choice is 3 then write the command to cut the phones from the phoneMenu and display that.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a script that asks the user to enter his name read
Reference No:- TGS02925162

Expected delivery within 24 Hours