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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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