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

  Describe why full binary tree requires to have node

Describe why. Full binary tree requires to have a node with 0 or 2 children and complete tree have their child starting from left. Choose the one true statement. Every binary tree is either complete or full.

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Creating dataflow diagram

Think about the level of detail involved with creating a dataflow diagram, why should the narrative be prepared? Explain why do we need the questionnaire?

  Data warehouse and operational databases

Every big organization has large documents or databases containing data used in operating the business. Does a data warehouse differ from these operational files or databases?

  Find cost of sorting the relation in seconds

Suppose you need to sort a relation of 40 gigabytes, with 4 kilobyte blocks, using a memory size of 40 megabytes. Find the cost of sorting the relation, in seconds, with bb = 1 and with bb = 100.

  Object oriented approach versus the relational database

Supporters of object oriented databases list many benefits for using the object oriented approach versus the relational one.

  Data structures for a single algorithm

Data structures for a single algorithm

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  Determining ciphertext generated by encryption

Determine ciphertext (in binary form) generated by encryption of character X?

  Create long queue-customers dequeue to next counter

Write a program to simulate a grocery store checkout counter. Construct one long queue from which customers dequeue to the next available counter.

  Decrypting the ciphertext to recover the plaintext

If you get ciphertext message YPHDCRPBEQTAA, decrypt to recover plaintext.

  Creating a data flow chart

Create a Data Flow Chart and then make an application that allows a user to enter a stock transaction and determine the stockbroker's commission.

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