Write a script that asks the user to enter his name

Assignment Help Computer Engineering
Reference no: EM132131711

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.

Reference no: EM132131711

Questions Cloud

Common dominant mutation : Suppose a man carries a very common dominant mutation for a deadly muscular disease that doesn't show up until people are usually over 50 years
Foodco franchise australia small business : Foodco franchise australia small business - Discuss code of conduct and franchise law - Discuss failures like the pie face chain
Create a dialog example for at least 3 principles : Create two scenarios, such as an attacker impersonating a help desk employee who wants access to an employee's protected information.
Select two of the mechanisms of evolutionary change : Select two of the mechanisms of evolutionary change (mutation, gene flow, genetic drift or non-random breeding) and explain what each
Write a script that asks the user to enter his name : 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.
Describe the metabolic process of the bacteria : Example 1) you could describe the metabolic process of the bacteria that is used during cheese making, indicating the type of respiration that is happening
What size company would be more apt to use : Give a real-world example of when each of these technologies would be more advantageous for a customer.
Which are the logical steps proposed by margulis : Which are the logical steps proposed by Margulis that would help explain why the accumulation of oxygen in the atmosphere led to the evolution of mitochondria.
People of the united states : The United States established the first National Park in the world on March 1, 1872. What does this say about the people of the United States?

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is role of kcc and its relationship to rule of three

What is the role of KCC and its relationship to the rule of three? What are the different criteria that can force replication to occur? How does Active Directory handle simultaneous changes?

  How would the program behave differently

The Dots program listens for a mouse pressed event to draw a dot. How would the program behave differently if it listened for a mouse released event instead?

  Answer the following

What is final value of y after executing the following code.

  Describe the ideal online tool set

The first editing pass must be completed in three days. Describe the ideal online tool set that would enable you to collaborate effectively.

  Refined version of the multiplication hardware

Do the given multiplication of two 4-bit numbers (the leftmost bit is sign bit) by using the refined version of the multiplication hardware, and use decimal arithmetic to verify your results.

  What could possibly be used as a key field

I need help with doing some web search research on relational databases and define briefly how such a database works, and basic components.

  Calculate total distance traveled

Calculate total distance traveled, total gas consumed (gallons), MPG over the past 5 minutes, and cumulative MPG.

  Questionarrays and control structures are important tools

questionarrays and control structures are important tools while programming. an array contains a number of variables

  Examine the computers technical specifications

Examine the computers technical specifications to determine the differences underlying the high-performance designation for the workstation.

  What are some of the more popular exception handling uses

Exception Handling in Java is a very powerful capability. Exception Handling allows us to check input, verify if files exist, precent division by zero, prevent array out of bounds, and a whole host of other things.

  Employeeexception class whose constructor receives a string

build an Employee class with two fields, idNum and hourlyWage. The Employee constructor requires values for both fields. Upon construction, it throw an EmployeeException if the hourlyWage is less than 6.00 or over 50.00. Save the class as Employee..

  Write a function which is p assed a list

Write a function which is p assed a list, and returns a list whose elements are in the reverse order of the original list.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd