Explain the following command lines

Assignment Help Software Engineering
Reference no: EM13326300

Assume you have a text file called file. Explain the following command lines.

1. sed "s/the/a/g" file
2. sed -n "s/[A-Z]/&/gp" file
3. sed "32,45 s/[()]//g" file
4. sed "/^$/d" file
5. sed "s/\([0-9]\)-\([0-9]\)/\1\2/g" file
6. sed "80q" file

For example, sed 's/fox/ox/g' file will replace all occurance of fox with ox and not the just the first one in file.

 

Reference no: EM13326300

Questions Cloud

Determine the horizontal distance from the point : determine the horizontal distance from the point where the ball left the floor to the point where it hits the floor again. the ball leavesthe floor at x=0, y=0. determine the ball's y coordinate as afunction of x.
What is the apparent weight of a satellite : Communications satellites are placed in a circular orbit where they stay directly over a fixed point on the equator as the earth rotates. What is the apparent weight of a 2000 kg satellite in a geosynchronous orbit
Find the speed of the block just before it hits the spring : A 250 g block is dropped onto a relaxed vertical spring that has a spring constant of k = 3.5 N/cm, What is the speed of the block just before it hits the spring
What tube diameter is needed if water level in tube is rises : An open, clean glass tube (theta = 0 degrees) is inserted vertically into a pan of water. What tube diameter is neededif they water level in the tube is to rise one tube diameter (dueto surface tension)
Explain the following command lines : For example, sed 's/fox/ox/g' file will replace all occurance of fox with ox and not the just the first one in file.
Determine the angle-theta of the ramp with a constant speed : A 40lb, .8ft diameter, 1ft tall cylindrical tank slides slowly down a ramp with a constant speed of .1ft/s. The uniform-thicknessoil layer on the ramp has a viscosity of .2lb*s/ft^2.
What is the conversion rate for parts per million by volume : What is the conversion rate for parts per million by volume (ppmv)conversion. How is this converted into atm, Pa, and torr
Create a subdirectory of the current directory : View without using gunzip but use the tar instead. (Hint: ?nd the right option to use from the man page).
What is the concentration in ppm at the downstream reach : Five million gallons per day (mgd) of a conservative substance,with concentration of 10 mg/L is released into a stream having anupstream flow of 10.0 mgd and a substance concentration of 3 mg/L.Assume complete mixing.

Reviews

Write a Review

Software Engineering Questions & Answers

  Object oriented design for a system that contains tracks

Make an object oriented design for a system that contains tracks of your CD and DVD collection. Recognize each of the classes, associated data,and operations for the classes.

  Find multicanonical monte carlo methods and rare growth

MATH7601: Project Descriptions. Multicanonical Monte Carlo Methods and Rare Growth Factors. One of the big unsolved research problem in Gaussian elimination is the question of backward stability. Even with partial pivoting examples are known.

  What information-gathering methods are most appropriate

what information-gathering methods are most appropriate to learn about requirements from reliable's own management staff and other employees? from client health-care organizations? from suppliers?

  Office automation and group collaboration software

Create a paper explaining what office automation and group collaboration software is used in your company. Include an review of the drawbacks and benefits of each software used.

  Question about hippa rights

I have found that to date, the largest offense is looking into family records even though workers are warned not too and that this is a violation of that family member's HIPAA's rights.

  Sketch flowchart to print average for student

Sketch a flowchart to print average for each student in class.Input. Input consists of student records each containing student's name(STUDENT-NAME), score for first test(TEST), score for second test(TEST2), and score for third test(TEST3).

  Build an entity relationship model for the above scenario

Build an entity relationship model for the above scenario.  Show all attributes and indicate all of your key attributes in red.

  Implementing reusable code

Many programming languages exist in various libraries and on the Internet and using some of these functions and process, this can permit you to use these technique rather than having to write out the code from scratch on your own.

  Finding cause of the bug

The following LMC program is supposed to input two numbers, compare them, and output the higher of the two numbers.

  Saving privacy on the web

Explain two tools that people can use to save their privacy on the web. Give one useful application of location tracking.

  What are advantages or disadvantages to having such policy

In answering this question we first need to consider does a company need a policy for determining which methodology/model to use? What are the advantages/disadvantages to having such a policy?

  Difference between private, public and protected variables

Difference between private, public and protected variables

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