Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93119176

Have any Question?


Related Questions in Computer Engineering

There are several different vdi technologies and many

There are several different VDI technologies and many different VDI providers. For this discussion select, one VDI software provider offering a Centralized VDI approach and another provider offering Hosted VDI. Compare t ...

What is the fraction defective if material hardness is

What is the fraction defective if material hardness is normally distributed with a mean of 42 and a standard deviation of 1 and the specification limits for hardness are from 35 to 45? What value for the process mean wil ...

Switches are an integral part of networks they are the

Switches are an integral part of networks. They are the devices you utilize for host connectivity to the network. Please identify and discuss an attack that takes advantage of a weakness in switches.

1 select one of the topics listed below and discuss

1. Select one of the topics listed below and discuss it. Describe an application that you have to solve by using at least 2 Excel functions. It can be Math, Statistics, Engineering, Financial, etc. Explain what Excel fun ...

Please solve the following question using java format

please solve the following question using java format (*Solution can include*if needed* ( if statement, switch, while ) not arrays*) Write a program which performs the following: a) Prompts the user to enter a number N b ...

Question in official obenglobish the ob characters are

Question : In official Obenglobish, the ob characters are added only before vowels that are pronounced, which means that a word like "game" would become "gobame" rather than gobamobe because the final e is silent. While ...

When is a subclass a subclasswhen programming or solving

When is a Subclass a Subclass When programming, or solving any sort of problem for that matter, abstraction plays a key role in the decision-making process. It allows you to remove irrelevant details in order to understa ...

A random sample ofnbsp87nbspeighth gradenbspstudents scores

A random sample of 87 eighth grade? students' scores on a national mathematics assessment test has a mean score of 279. This test result prompts a state school administrator to declare that the mean score for the? state' ...

Question 1 select a specific activity or responsibility of

Question: 1. Select a specific activity or responsibility of the systems analyst. Define the purpose of the systems analyst and why it is important in the overall systems analysis process. Write this post to an audience ...

The following is historical data on the us dollar -

The following is historical data on the U.S. dollar - Canadian dollar exchange rate: Date U.S./Canadian  Canadian/U.S. 1/20/2016 0.68 1.46 9/6/2018 0.76 1.32 Calculate the percentage change in the exchange rate over this ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As