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

  Let a be the set of all ist students who graduate

Let A be the set of all IST students who graduate

  Write a c++ program that prompts the user for two values

Write a C++ program that prompts the user for two values. The program then prints the two numbers in ascending order. If the two values are identical it prints a single line saying that both numbers are identical.

  Identify a new use for ugc

Choose one of the two publications and identify a new use for UGC. Write a one-page memo to the publisher of that magazine describing your idea and how it would contribute to the goals of the publication.

  Discuss how to protect privacy in electronic society

Privacy issues about RFID have received extensive attention. Discuss how to protect privacy in electronic society.

  Assignment-storing pokemon

You showed in class that you are all experts in Pok´emon, but if you're going to be a real expert, you should design your own data structure for storing them all.

  Privacy laws are in a near constant state of flux

1) Privacy laws are in a near constant state of flux. Conduct research to identify the current state of privacy law. Has any major legislation recently been proposed or approved? What are the implications for firms operating in effected industries? W..

  Monthly reporting form for checking account customers

As part of a larger system project. Clone Bank of Clone, Colorado, desires your help in setting up a new monthly reporting form for its checking account customers.

  Benefits associated with technological convergence

Identify additional concerns that you believe might have some social and ethical implications as a result of converging technologies and describe these implications and justify your choices. Include relevant information--facts and/or opinions--fr..

  Analysis document of pharmassure

Design the sequence diagram for the use case ‘Create Case Manifest' on the base of analysis document of PharmAssure(Case study) that has is provided to you.

  An engineering company has a policy

An engineering company has a policy that its end users should never make changes to the system Registry or perform hardware repairs of any kind on their office workstations. Do you think this policy is a good one? Discuss the pros and cons of this po..

  Perform the physical design

Perform the physical design and implementation using SQL Data Definition Language

  Write a program with the output hello world hello

Write a program with the following output: (Notice the newline and space) Hello world! Hello

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