Creating a bash script

Assignment Help Data Structure & Algorithms
Reference no: EM1380585

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

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

Question2) 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

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

Question4) What is the difference between the following commands?

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

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

ls -l file[1-20]

Question6) Create a Bash script that will prompt for the user's first and last names and store the responses in two variables. Then it will show the stored data 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: EM1380585

Questions Cloud

Illustrate what they do to exchange ideas : According to Spotlight on Small Business Box, "Big Motivators for Small Business", small businesses seem to be better at motivating employees with open communication also more broad-based responsibilities, where employees exchange ideas also becom..
From any source discover commercial property for sale : From any source discover commercial property for sale that you would suspect from its description or appearance that perhaps has environmental problems.
How did the dtis crm team alteration the business process : How did the DTIS CRM team alteration the business process for dealing with abandoned vehicles in San Francisco? How did the old business process work and what kinds of problems arose?
How macro level factors in an external environment have : Discuss how macro level factors in an external environment could have (or already have) impacted structure of online social networking industry in global marketplace.
Creating a bash script : Create a Bash script that will prompt for the user's first and last names and store the responses in two variables. Then it will show the stored data in the format "You entered lastname, firstname."
Define a time when one of your leaders changed her paradigm : Can you define a time when one of your leaders changed her paradigm? How did that effect you and others in the organization? Can you define a time when you had to change your paradigm?
Illustrate what techniques or software might they use : Illustrate what additional hardware might they need for storage also processing. Illustrate what techniques or software might they use to make their research more efficient also lower costs.
During a consultation project a consultant inquired : During a consultation project a consultant inquired an executive board of 20 members to write down the company's vision for the future. When the retorts were collected board members had recorded 20 different ideas,
Explain why toastmasters would or would not help you : Review organization's vision also mission statements. Evaluate information also write an outline for a presentation (2-3 minutes) telling class explain why Toastmasters would or would not help you also your classmates write also deliver an effect..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Give algorithm-correctness proof-time complexity for tree

Determine the minimum number of nodes in tree to remove so that the tree is separated into subtrees of sizes at most k. Give the algorithm, the correctness proof and the time complexity.

  Calculations on rows and columns of an array

Make a menu bar with a document menu that includes a Perform Action command and an Exit command. The Perform Action command calculates either the sum or the average of rows or columns in array and displays result in a message box.

  Creating erd with primary, foreign keys and main attributes

A very small college wishes to keep track of history of all administrative appointments, The college chancellor may wish to know how many deans worked in college of business between January 1, 1960 and January 1 2008

  Discuss and define complex data binding

Discuss and define complex data binding and what benefits can this capability lend to a multiple table database application?

  Java program to assign passengers seats in airplane

Prepare a Java program to assign passengers seats in an airplane. Suppose a small airplane with seats numbered as follows:

  Describe a fair coin algorithm to returns either 0 or 1

Describe a FAIRCOIN algorithm that returns either 0 or 1 with equal probability, using ONEINTHREE as your only source of randomness.

  Explain compression algorithms are often used in forensics

"Compression algorithms are often used in forensics. Suppose you are involved in a case and have been asked by the lawyer to explain, in general terms.

  Evaluate the average complexity of an enqueue operation

Evaluate the average complexity of an enqueue operation. Determine the average complexity of the dequeue (remove) operation.

  Write algorithm using pseudo code consensus algorithm

Write an algorithm, using pseudo code, "Consensus algorithm": A group of ten people need to decide which one flavor of ice cream they will all order, out of three options.

  Create algorithm to perform any sequence of two operations

Let A[1, n] be an array of real numbers. Create an algorithm to perform any sequence of the following two operations: Add(i, x): add the value x to A[i].

  Random walk simulation

A two dimensional array should be used to represent number of times the bug reached each tile on the floor. All cells of this array should be initialized to zero.

  Encryption feistel cipher and decryption algorithm

If this is psudocode for encryption feistel cipher determine decryption algorithm?Output: ciphertext = (left[16], right[16]) Explain pseudo-code of corresponding decryption algorithm for this cipher.

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