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

  Data structures and algorithm design

Data Structures and Algorithm Design

  Design a control unit for simple hand held video game

Create a control unit for a simple hand held video game in which a character on the display catches objects. Only demonstrate the transition diagram

  Creating a class for services

Make a class for services offered by a hair styling salon. Information fields with a String to hold the service description, a double to hold the price, and an integer to hold average number of minutes it takes to perform the service.

  Create greedy algorithm to find market to buy apples

Assume we drive pickup truck from city A to city B. Along high way, we will go through n apple markets, labeled with 1, 2, ..., n, where you can buy or sell apples. which means you buy and sell apples at the same market i.

  Question related to normalization

Think about a typical job order that might include the following information. Design a single table to hold all the data needed to store a job order including this information.

  Creating a method find ranks in java

Create a method findRanks in Java that accepts an unsorted array of integers vals, and starting and ending rank start and end, numbering ranks from 0,

  Entity relationship diagrams

Discuss why are Entity Relationship Diagrams an important initial stage in developing databases? Who would be the initial parties interacting to develop the ERDs?

  Documentation and proper design procedures

Determine the main reason that make many developers skip over the documentation and proper design process? As a manager, discuss how do you ensure that the proper database design process are followed by database development teams?

  Create an asp.net project with visual studio

Design an ASP.NET assignment with Visual Studio that contains two aspx forms. The 1st form uses the Login control to a login page. Users should not be able to view second form unless they have entered a correct username and password.

  Computing total number of keys needed in symmetric cipher

Determine the total number of keys that are needed for organization if symmetric cipher is used.

  Creating the table showing decimal value

Assume if the last digit of a 2's complement binary number is 0, then number is even. If the last two digits of a 2's complement binary number are 00

  Algorithm for a bank account

Write algorithm to settle following question: A bank account starts out with $10,000. Interest is compounded monthly at 6 percent per year (0.5 percent per month).

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