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

  Procedure to draw shape of choice

Write a program with a suitable procedure to draw shape of your choice. Your program must then call the procedure 10 times to draw the shape.

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Write a program to enter series of numbers

Write a program that ask the user to enter a series of numbers ending with -1. After the -1 is input, program should print how many numbers are even and how many numbers are odd.

  Expression evaluate to true if string variable equals string

Write an expression that evaluates to true if and only if the string variable equals the string "end". Suppose that the value of s were "friend".

  Writing program of long term parking

Write an enitre program about the long term parking, and calculate the parking total fare.

  Use switch statement to display roman numeral version

Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number less than 1 or greater than 10.

  Write a paper on memory management

Write a paper on Memory Management

  Program to output circle-s radius-diameter-circumference

Write a program to prompt the user to enter center and a point on circle. Program must then output circle's radius, diameter, circumference, and area.

  Pseudocode that will generate reports from data files

Develop a mock-up of each of these reports, and get customer approval of these mock-ups. Write pseudo code that will generate these reports from the data files, using a CASE tool;

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  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..

  Use-professional translator in creting website-other country

When and why would you need to use the services of a professional translator to help prepare your website for an audience in another country?

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