Question about unix and shell scripting

Assignment Help Data Structure & Algorithms
Reference no: EM1380557

Question1. Explain the results of executing each of the following grep commands in your home directory.
a. grep -c ill memo
b. grep -n ill memo

Question2. What would the permission section of an ls -l listing for filex look like after setting the following permissions?
a. chmod 764 filex
b. chmod 666 filex

Question3. Rewrite the following sequence of commands using sort as a filter. You should end up with a single command line when you are done.
$ sort roster > temp
$ lpr temp
$ rm temp

Question4. Write a command, assuming your home directory, to list all files 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.

Question5. What is the difference between the following commands?
$ cat xyz[12]
$ cat xyz[1-2]

Question6. What files would the following match?
$ ls -l file[1-20]

Question7. Write a script that will prompt for the user's first name and store it in a variable. Then prompt for the last name and store it in a variable. Finally, 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!" if the answer is "n" or "no" then start again with the prompts.

Reference no: EM1380557

Questions Cloud

Illustrate what is break-even ebit : In considering newly levered versus formerly unlevered firm, illustrate what is break-even EBIT. Ignore taxes.
Identify a product offered within an industry : Identify a product offered within an industry. Using Macro-trend analysis from readings identifies, discuss also analyze macro-trends that may impact industry over next five years.
Directors officers and controlling shareholders : Directors, Officers and Controlling Shareholders -Give an instance or scenario of how a manager could effectively utilize the Business Judgment Rule.
Explain why has been there been growth in number : Explain why do you think facilities have become so important in sports, at pro, college also even general public level. Also explain why has been there been growth in number also level of sophistication of events.
Question about unix and shell scripting : Explain the results of executing each of the following grep commands in your home directory.
Additionally there are numerous sources of law including : Additionally there are numerous sources of law including common law and the Uniform Commercial code, as you have deliberated in this unit.
The pepsi refresh project- viral marketing : Internet Technology, Marketing, and Security, The Pepsi Refresh Project- Viral Marketing
Determine whether zero population growth figure for urban us : Growth figure for urban U.S. residents also is true for rural U.S. residents on basis of sample data. 9.49 Brokers generally agree that bonds are a better investment.
Define wan and provide an example of typical wan setup : Define a WAN and provide an example of a typical WAN setup and describe the components. Provide a picture, chart, or image if possible.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

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

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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