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

  A positive integer and a subprogram

The factorial of a positive integer N, denoted by N!, is defined by the following: N! = 1 * 2 * ..... * N (Note: 0! = 1) Using module and/or functions, create a recursive program to compute N!. The user should input a positive integer and a subprogra..

  Using strategies that guide readers

Using Strategies That Guide Readers Write a Comparison/Contrast Essay. Prompt: At the bottom of page 443, in the paragraph "Writing about Comparisons and Contrasts" read the writing prompt of thesecond bullet point: "In an email to a friend, you mig..

  Explain data by state of computer-s electrical switches

Differentiate between computer data represented by the state of computer's electrical switches and meaningful information which is displayed to user.

  Explain the steps take to stop cyber squatter explain the

explain the steps take to stop cyber squatteryou are a owner of the register trademark and you just found that domain

  Predict the microsoft office component

Submit all files and written responses at the same time as one (1) complete submission. Screenshot File Submission: You must submit the screenshot file(s) using the provided Assignment Submission Attach File function located in the Blackboard online ..

  What is the optimal cost of inventory

Shopkeeper has a uniform demand of an item at the rate of 50 units per month. He buys from supplier at the cost of Rs. 6/- per item and the cost of ordering is Rs. 10/- each time. If the stock holding costs are 20% per year of stock value, how freque..

  What are the three major classes of guided media

)An AP may connect a wireless network to a wired network. Does the AP need to have two MAC addresses in this case? Why or why not?

  Explain the various privacy rights

Explain the various privacy rights that businesses on the Web are lawfully obligated to adhere to. Describe some of the gray areas in enforcing these laws on the Internet. When we consider gray areas, think about privacy issues that companies may not..

  Students and faculty to stay connected as they roam

Imagine that your university uses 802.11b wireless access points and wireless network cards to allow students and faculty to stay connected as they roam the campus.

  Make report to print gross earnings and tax payable

Your report is to print the gross earnings, tax payable, medical levy and net earnings for each employee. At the end of the report, print the total gross earnings, total tax, total medical levy and total net earnings.

  Develop a secure message and file exchange application

ABC Company is to develop a secure message and file exchange application

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