How do you make an awk script executable within a file

Assignment Help Basic Computer Science
Reference no: EM131038376

1. In a shell script, how do we indicate the first, second, and third command line arguments. How about all of them?

2. How do you make an awk script executable within a file?

3. Give a unix command for locating all files of a certain type on the G: drive and copying them to C:\myfiles. How would you count how many there are and list them?

4. Give the command for writing a CD-ROM mounted on /dev/cdrom to a file in your home directory.

5. Give a command that lists all directories in the present working directory (pwd). How would you modify it to list all character or block devices in /dev?

6. Give a command that saves an inventory of all files on your system.

7. Give a one line command that locates all instances of a certain string in a certain location.

8. Give a one line command that parses all words in a text file and gives the frequency of each.

9. Give a one line command that prints a list of all users listed in /etc/passwd and nothing else.

10. Give a command for archiving all the files in your home folder. How would you modify it to save a compressed version? What is the command for extracting a compressed tar file?

11. Give a unix command for locating a word "pattern" in a directory and all its sub-directories.

12. Write a bash script that does the following: prints the contents of /etc/hosts and prints the contents of the file system table.

13. Write a script that takes as input a pattern then kills all processes that satisfy the pattern.

14. Using awk, look for a pattern and, if is found, prints the line containing it. How would you modify this to run an application like notepad?

15. Create a symbolic link from your home directory to another location.

Reference no: EM131038376

Questions Cloud

Do resources and capability analysis value chain analysis : Do the resources and capability analysis, value chain analysis
What are the practical usages of scientific notation : What are the practical usages of scientific notation? Why is scientific notation so important in our modern day society? What would be the value of expressing something like the national debt in scientific notation? What information would be lost i..
For the maine accident data modeled : For the Maine accident data modeled in Section 7.3.2: a. Verify that logistic model (7.9) follows from loglinear model (GLS, GI, LI, IS). b. Show that the conditional log odds ratio for the effect of S on I equals model
Analyze these data using logistic models : Refer to Table 7.13 in Section 7.4.5 on the substance use survey, which also classified students by gender (G) and race (R).
How do you make an awk script executable within a file : Write a bash script that does the following: prints the contents of /etc/hosts and prints the contents of the file system table.
Engaging in public discussion with an informed argument : Engaging in public discussion with an informed argument. Building upon your rhetorical analysis skills, add framing analysis and website evaluation to investigate 2-3 websites.
Calculate how long it would take to pay off the credit card : Calculate how long it would take to pay off the credit card balance paying only the minimum payment. Choose an amount of time between 2 and 10 years and calculate the monthly payment required to pay off the credit card balance in that amount of tim..
How can you further implement art into your stem curriculum : How does a liberal arts, general education core support student preparation for STEM careers, or, quite frankly, applying key STEM principles and skills regardless of the career path?
Design system including a system to monitor the network : Chose cabling and wireless media for network and backup. Tell the positives and negatives of your choice and why you chose what you did

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Cryptography please i need this assignment and discard all

please i need this assignment and discard all the request before thank you step 1 establish a target audience and

  Write the code to compute s on the basis of these values

In physics, a common useful equation for finding the position s of a body in linear motion at a given time t, based on its initial position s0, initial velocity v0, and rate of acceleration a, is the following:

  Top left hand corner of the file submission box.

For this assignment, you will be creating a storyboard for your final course project. By now, you should have selected a topic for your web site, and given some thought to your design. Perhaps you have already started working on creating your pages! ..

  Perform a benchmark analysis

Write an algorithm to classify the edges of a directed graph G into the four categories: tree edge, back edge, forward edge and cross edge (defined in 22.3 Depth First Search - Classification of edges).

  Determine the maximum height h in meters

Determine the maximum height h in meters to which the girl can walk up the slide without supporting herself by the rails or by her left leg.The coefficient of static friction between the girl's shoes and the slide is µS=0.8

  Draw a dependency diagram to show functional dependencies

This assessment item is designed to test your understanding of more advanced database design, your ability to use an iterative approach to modelling, and to examine data problems due to redundancy.

  Optimal inventory cost and number of orders.

The demand for an item is 8000 units per annum and the unit cost is Re.1/-. Inventory carrying charges of 20% of average inventory cost and ordering cost is Rs. 12.50 per order. Calculate optimal order quantity, optimal order time, optimal inventory ..

  Which of the following statements are true

Which of the following statements are true? Select one or more

  Discuss the need to manage implementation of the project

Explain why the NPV and IRR capital budgeting tools are superior to the accounting rate of return and simple payback techniques for determining the attractiveness of capital investment opportunities.

  Three-tiered architecture

Submit a report for the CIO about three-tiered architecture. The organization has continued to grow, and the architecture of the existing database needs to be changed to increase performance, scalability, and reliability. Your CIO has asked you to..

  What size of packet will result in the last bit

Given a transmission speed of T bits/second, a packet size of B bytes, a propagation speed of P m/s and a cable length of L meters, what size of packet will result in the last bit being transmitted just as the first bit of the packet arrives at th..

  Calculate and display the volume of a cylinder

Write a complete program for Visual C++ to calculate and display the volume of a cylinder, given its radius and height. Your program must meet the following requirements.

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