Draw a bash script that will prompt for the user''s first

Assignment Help Computer Engineering
Reference no: EM1336480

1) Describe the result of executing each of the following grep commands.

a. grep -c ill memo
b. grep -n ill memo

2) Rewrite the following sequence of commands using sort as a filter. The end result should be a single command line when you are done.

sort roster > temp
lp temp
rm temp

3) Write a command to list all files in current directory, that:

a. Start with the letters b or f.
b. Start with the letters a through k.
c. Have a capital letter anywhere in their name.

4) What is the difference between the following commands?

cat xyz[12]
cat xyz[1-2]

5) Listing for which files will be given by the following command?

ls -l file[1-20]

6) Write a Bash script that will prompt for the user's first and last names and store the responses in two variables. Then it will display the stored information in the format "You entered lastname, firstname." and ask the user for confirmation. If the answer is "y" or "yes", then say "Thank you!", and if the answer is "n" or "no" then start again with the prompts.

Reference no: EM1336480

Questions Cloud

Question about role of compensation : Question about Role of Compensation - Describe the role compensation plays in the achievement of organizational goals.
Why using uml graphical notation : Using UML graphical notation, develop the design for the following system to explain the object classes and show the interaction of the data collection sub-systems (sequence diagrams).
Explain smuckers'' fit or lack of fit - case analysis : Explain Smuckers' Fit or Lack of Fit - Case Analysis and State the main purpose of the response (thesis statement) and what you hope to accomplish
Question about reward systems : Question about reward systems - Identify at least four reasons why designing and implementing reward systems
Draw a bash script that will prompt for the user''s first : Write down a command to list all files in current directory.
Question about resource allocation : Question about Resource Allocation - prepare two documents that thoroughly discuss the following components
Explain southern comfort : Explain Southern Comfort and Should it be distributed more or less intensely than other liquors
Managing an international business : What are the key major staffing models used in managing an international business
Hrm and a nursing home : How would HRM in a health care organization actually "operate" some of these HRM duties?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a two-dimensionsl array depending on user choices

design an application that either sums or averages the rows or columns of a two-dimensionsl array depending on user choices. Use following data for the array.

  Java program that allows a user to enter three words

design a Java program that allows a user to enter three words, and displays the appropriate three-letter acronym (constructed from the input) in all uppercase letters. If user enters more than three words, ignore the extra words.

  Algorithm to read an arbitrary number

Develop an algorithm to read an arbitrary number of the data records, each consisting of a name, age, and code. A Code of 1 will indicate female, a code of 2 will indicate male.

  Write down a c program that has a declaration in main()

Modify this restaurant() function to alter the address in message. usage the expression *menu rather than *(menu + i) to retrieve the correct element.

  Program that continuously outputs random numbers

Write down a code in Java that continuously outputs random numbers between 0 and 10000 until a number which is divisible by 5 is encountered.

  Prepare a multithreaded code breaking program

Prepare a  multithreaded code breaking program. You have been provided 3 files that contain text that have been  encrypted using a Caeser cypher scheme.

  How to generate a complete erd in crows foot notation

How to generate a complete ERD in Crow's Foot notation

  What is the least data transfer rate across the bus

What is the least data transfer rate across the bus

  Give the type of clip art found at the sites

search on the Internet for at least 2 additional sites other than Microsoft's that offer clip art, either free or for a price. If you have real-life or professional experience with clip art sites.

  Make a java application containing an array

design a JApplet with a JButton labeled "Who's number one?". When the user clicks the button, display your favorite sports team. Save the file as JNumberOne.java .

  What aspects of environment support structure of colleges

What aspects of environment support structure of colleges.

  Process used to detect and correct transmission errors

process used to detect and correct transmission errors.

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