Write a bash shell script prompt user to enter first name

Assignment Help Programming Languages
Reference no: EM1356185

1. Write a Bash shell script named phone.bsh that prompts the user the to enter first or last or any portion of person's name, so that can be found the appropriate entry in the phone directory file called phones which may be found in the ~unx122/examples directory.
If the user tries to enter name as the argument on the command line, he/she will get a warning message "You need to provide name when prompted by this script!".

If the person's entry does NOT exist in the file phones then it will be displayed the following message "Name NOT found in the phone directory file!" (where Name is the user's input).

Reference no: EM1356185

Questions Cloud

Principles of classical and operant conditioning : Compare and contrast the main principles of classical conditioning and operant conditioning. Provide an example of when classical conditioning may be useful. Provide an example when operant conditioning may be useful.
Global macro economic variables : what can organizations do to address the issues you identified above? Provide at least 3 reference sources to support your position.
Illustrate what is the proper role of unions : Illustrate what is the proper role of unions. Why are they declining in membership and influence in the economy.
Forecast book value and return on common equity : An analyst presents you with a following pro forma that gives her forecast of earnings and dividends for 2007 -2011. She asks you to value the $1,380 millions shares outstanding at the end of 2006,
Write a bash shell script prompt user to enter first name : Write a Bash shell script named phone.bsh that prompts the user the to enter first or last or any portion of person's name, so that can be found the appropriate entry in the phone directory file.
Examine the importance of competitive intelligence : Examine the importance of competitive intelligence and analysis in regards to the development of Kudler Fine Food's marketing strategy and tactics.
Cognitive interventions among older adults : Cognitive Interventions among Older Adults: an article that is about the trends in psychological research methodology.
Investment timing : Suppose you can purchase an optical scanner today for $400. The scanner provides benefits worth $60 a year. The expected life of the scanner is tenm years. Scanners are expected to decrease in price by 20% per year.
How economy is currently at potential output : Suppose that the economy is currently at potential output. Also suppose that you are an economic policy maker and that a college economics student asks you to rank.

Reviews

Write a Review

Programming Languages Questions & Answers

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Method takes string and integer as parameters

Write a method called multiConcat which takes a String and an integer as parameters. Return String made up of the string parameter concatenated with itself count times.

  Write a program that uses the curve class hierarchy

Write a program that uses the curve class hierarchy. The program should define several different objects, output their area, circumference, etc. It should also use the printcurve function.

  Develop computerized pot hole tracking and repair system

Department of public works for city has decided to develop computerized pot hole tracking and repair system. As pot holes are reported to customer service.

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Write program to prompt user to enter string of caharacter

Write a program that prompts the user to enter a string of 87 characters the program should display the middle character in the string if there is an odd number characters in the string.

  Develop a simple program for inventory system

You have to develop a simple program for an inventory system. You can choose any type of business (ie: Medical supplies, bakery, grocery shop, florist etc.)

  Discussion: html/css

Discussion: HTML/CSS,  "JavaScript Placement"  Please respond to the following: Compare and contrast the process of adding JavaScript and a Cascading Style Sheet to a Website. Determine if they can be used simultaneously in a page. If so, explain wh..

  Create a class named rectangle with length and width

To cover that floor with carpet that costs $8 per square foot would cost $960. (12 x 10 x8 = 960.). You should create a class named Rectangle with the following properties:

  Program to prompts user for integer and print prime number

Give a program which will compile in VS 2010. Write a program to prompts user for integer and then prints out all prime numbers up to that integer.

  Create a model using the entities movie

Create a model to represent this report using the entities MOVIE, THEATER, and SHOW_TIME. Assume that theaters may show multiple movies.

  Write temperature conversion program

You will write a temperature conversion program. GUI and event handling setup must be done in the constructor of the class that implements the GUI.

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