I have a log file with multiple request XML snippets in it.  I am using this sed command to extract and print the request XML:  sed -n '/&lt;GetCompensableProductIdentification*/,/&lt;\/GetCompensableProductIdentification&gt;/p' ProductIdentifierService.log   I want to use variables for the request start and end tags so that I can filter out any request I want.  How can I do that?
I'm trying to run  sed -i "/$variable/c \$variable1' file.txt   But it's not displaying any change in the file: file.txt.  But the same command, with out the variables works fine:  sed -i "/variable/c \variable1' file.txt
Why are tar archive formats switching to xz compression to replace bzip2 and what about gzip? Will Google punish me if I import a story from my own blog to content sharing sites such as Medium.com? I've heard that Google punishes sites with duplicate content.   If I write an article on my blog then import it on Medium (basically a copy/paste) will Google regard it as a duplicate?   Medium.com is a blog platform (sort of). First quick glance at a dataset Please pardon my ignorance, but...  I keep finding myself in a situation, where I'm faced with a bunch of new data I managed to find. This data usually looks something like this:  Date     Number1  Number2  Category1  Category2 20120125      11      101        Dog      Brown 20120126      21       90        Cat      Black 20120126      31      134        Cat      Brown (...)   Usually at first glance I can't really tell if there are any trends here. The correlations between the various columns may not be very significant, but I would be delighted if I didn't have to manually create a plot for every possible combination of columns/categories.  Is there a tool out there which would accept a table of data along with information which columns should be treated as numbers, dates and categories and then proceed to plot:   correlations between each two numerical columns correlations between each two numerical columns, with separate trend lines for each category each number column as a time series, each number column as a time series, separated by category, etc.   In the end this would generate a large number of plots, most of which would show only noise. Ideally, the tool could score the plots by correlation and in the end display a slideshow starting with the highest scoring plots. This would be a very imperfect, but useful first glance at the dataset.  So? Is there a tool everyone uses for this and I just don't know about it, or is this something we need to make? Proof a $2^n$ by $2^n$ board can be filled using L shaped trominoes and 1 monomino Why do hard links exist? Proving that $d(f,g)=\|f-g\| = \sup \limits_{0\leq x \leq 1} |f(x)-g(x)|$ is a metric on $X=C[0,1]$ In another  regarding a difference between short on and short of, the  says the following:     ... But this is not always the case. A person can be short on/of money,   but lacking a specific amount, someone can only be €10 short or short   €10. This construction never uses a preposition.   but is that really true? I can see sentences like "I am short of 10 dollars" quite often. Multiple Inheritance in C# When using \textsc, LaTeX issues warning: Font shape `OT1/cmr/bx/sc' undefined Area enclosed between the curves $y=x^2$ and $y=60-7x$ Zorn's Lemma states that if every chain $C$ in a partially ordered set $X$ has an upper bound then there is at least one maximal element in $X$.  Let $n\in \mathbb{N}$, $C_n \subset \mathbb{N}$ be the set containing the natural numbers $\{1,\dots,n\}$. Then if $k\le n$, $C_k\subset C_n$, so $C_n$ is a chain. Also, $C_n$ has an upper bound, such as $n+1$. But what is the maximal element of $\mathbb{N}$?  There's something I don't get in Zorn's Lemma statement. How do I install a fingerprint reader on Lenovo ThinkPad? Simulating a Brownian Excursion using a Brownian Bridge? Let $f$ be a continuous function. If $f$ is uniformly continuous then it maps cauhy sequence into cauchy sequence. Is the converse true? That is if $f$ maps cauchy into cauchy gives the uniform continuity of $f$. I think it's no. Can suggest a counter example How do I avoid rendering glitches from overlapping faces? How is acceleration measured if there is change only in the direction of velocity & not magnitude? The formal definition of acceleration is      It is the measure of how fast the velocity changes with respect to time.   Now, when the magnitude of velocity changes, acceleration $$\vec{a} = \frac{d \vec{v}}{dt}$$ and its unit is $m.s^{-2}$ .  But what about the case where the velocity only changes its direction keeping its magnitude constant? The definition can then be      Acceleration is the measure of how fast the velocity changes its direction with respect to time.   But how can I calculate the acceleration then?? What should be the unit then??? Please help. What should I do to avoid ear pain when flying? I always feel a pain in my ears when flying. Specially when descending. The last time I had extreme pain, feeling it inclusive around my eye balls. It felt like someone was touching the eye and pulling it from the inside. I really had to focus, close my eyes and hold to avoid screaming. I am not sure but I think both things might be related. Such a severe situation only happened once.  I just heard that with a cold the ear pain gets worse. I am bit worried that I might go through that situation again. I have a cold and I am going to fly soon.  What can I do to improve this?  I see that some consider this a duplicate of the question "best way to make my ears pop" but after reading the answers I think my question goes a bit beyond that since my pain is more extreme and I think it goes beyond just popping the ears. I also want to know if other methods, like using earplugs, might be effective. Up until now, I implemented all-against-all collision detection in my games. It worked fine.  But I reached a point where implementing this kind of collision detection, makes the game run poorly, because there are two many objects to iterate through and check for collision.  I have searched this site and found something about 'uniform grids'. But I didn't completely understand what it is and how to implement it. Tried to Google it but nothing easy enough to understand came up.  I am a beginner to 2D-game programming. Do you mind trying to explain to uniform-grids, or link me to some good tutorial?  Thanks a lot How to work with iAds using xcode 3.1.3 How to download all required Ubuntu drivers Is there a package of Ubuntu drivers as driver pack solution? I tried to search for it, but I did not find it. If there is, how can I easily get it?