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

  Calculate the cost of sorting relation in seconds

Assume a flash storage device is used instead of disk, and it has seek time of 1 microsecond and transfer rate of 40 MB per second. Recompute the cost of sorting the relation in seconds.

  Data structures used to organize typical file cabinet

Recognize at least two data structures which are used to organize typical file cabinet. Why do you feel it is essential to emulate these types of data structures in computer program?

  Creating a flowchart

Create a flowchart to illustrate the given problem. You are given input for the student name, number of credits, and cost per credit.

  Question about database structure

Determine when a typical database is created the structure is constructed before the data is actually loaded into the database. What problems exist when someone wishes to add or delete from the existing structure?

  Creating an interactive java program

Create an interactive Java program that illustrates the use of constructors, methods, loops and arrays.

  Questionm about distributed database

Explain what a distributed database is and how replication works with respect to managing the information in these databases.

  Explain good algorithms to solve character pathfinding

You are working on the new computer game. One of implementation problems you are trying to solve is character pathfinding. What algorithms would be good to use and explain why?

  Data systems and design

Suppose if you have a program with a housekeep() module, a mainloop() module, and a finishup() module, when is the second input record usually read?

  Question about binomial tree

A binomial tree of height O, Bo is a one node tree. A binomial tree of height k, Bk is formed through attaching a binomial tree, Bk-1 to root of another binomial tree another binomial tree Bk-1.

  Creating decision tree

Premium Airlines has currently offered to settle claims for a class action suit, which was originated for alleged price fixing of tickets. The settlement is stated as follows. Create a decision tree for this condition.

  Algorithm to concatenate string in single binary search tree

Create algorithm which concatenates T1 and T2 into single binary search tree. Worst case running time must be O(h).

  Time sharing operating system

Assume a time sharing operating system allocated time slices of twenty milliseconds and the machine executed an average of 5000 instructions per microsecond.

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