I have a loop in the script below. It is not working as I want. I need to put the $LINE value in front of each column. While it puts "$LINE" instead of it is value:  cat list | while read LINE ; do sed 's/^/$LINE\t/g' $LINE.alf &gt; $LINE.joined done
I want to do:  cat update_via_sed.sh | sed 's/old_name/new_name/' &gt; new_update_via_sed.sh   in my program.  But I want to use variables, e.g.  old_run='old_name_952' new_run='old_name_953'   I have tried using them but the substitution doesn't happen (no error). I have tried:  cat update_via_sed.sh | sed 's/old_run/new_run/' cat update_via_sed.sh | sed 's/$old_run/$new_run/' cat update_via_sed.sh | sed 's/${old_run}/${new_run}/'
EL proposals / autocomplete / code assist in Facelets with Eclipse Create a variable in .CSS file for use within that .CSS file Possible Duplicate:          We have some "theme colors" that are reused in our CSS sheet.  Is there a way to set a variable and then reuse it?  E.g.  .css OurColor: Blue  H1 {   color:OurColor; } How can I setup a Material in Cycles for Z-Transparency? How to enable numlock at boot time for login screen? I am trying to force numlock to be on upon initial boot at the login screen on Ubuntu 12.04. The only solutions I have found so far switch numlock on only after initial login.  I'm looking to force numlock to be on when the login screen is displayed, and before the user has logged in. Can anyone assist? From , I have tried the using \hspace{0pt} and   \makeatletter \renewcommand{\dddot}[1]{%   {\mathop{\kern\z@#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@    \hbox{\normalfont ...}\vss}}}} \renewcommand{\ddddot}[1]{%   {\mathop{\kern\z@#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@    \hbox{\normalfont....}\vss}}}} \makeatother   after loading mathtools but the problem still persists.    \documentclass{article} \usepackage{mathtools} \begin{document} \[ \dot{\mathbf{r}}\times\ddot{\mathbf{r}}\times\dddot{\mathbf{r}} \] \end{document}   In the case the font scheme I am using has any affect as well, the fonts are:  \usepackage[utf8]{inputenx} \renewcommand{\rmdefault}{ppl}                  \linespread{1.05}                   \usepackage[scaled]{helvet} \usepackage{courier}               \usepackage{eulervm} \normalfont       \usepackage[T1]{fontenc}            \usepackage{textcomp} Is there a way of moving unwanted villagers out faster? Is there any way to speed up this process or indirectly 'force a villager to move out'?  I know they move out if it's time for a new one to move in, and I know you can't actually 'force' them persay.  I have a villager who has caused nearly all my other villagers to wear his.. rather hideous 'kiddie shirt'. ((the character's default shirt)) Aside from that his home blocks the perfect spot, very close to my river, for building a convenient bridge...  I've taken to pushing him, hitting him with a net, and I've been trying to find a Toy Hammer... He wanted to leave once and I told him to go, but then he said he wouldn't leave until I, "made an effort to get to know him" or some BS..  Are there any other ways I can get an unwanted, 'pesty', villager to leave town? When a land becomes creature, can you kill it? Some lands have an ability to become a creature, but they usually say they are still a land. If a land is a 3/3 creature and a land, can you target and kill it with a  to send it to the graveyard, or does it remain in play as a land? Redirect automatically when selecting an item from a select drop-down list This page does it the way I want it to:   But I want to find a better way using jQuery, can anyone point me to a good script that uses jQuery to accomplish this? Why did Obi-Wan Kenobi choose that moment to appear to Luke? App Store is stuck in a loop trying to download a free app -- how do I make it stop? My App Store keeps saying this item is free in the store, that this item will be added to your purchases and it then says cancel or download.   I click download and it won't download and keeps popping up the same message over and over again.  How do I make it stop? I can't download any apps. Could you tell me how to prove that if two series $ \sum_{n=0} ^{\infty}x_n, \sum_{n=0} ^{\infty} y_n$ are convergent, then $\sum_{n=0} ^{\infty}(\alpha \cdot x_n + \beta \cdot y_n)$ is also convergent and its sum equals $\alpha \cdot \sum_{n=0} ^{\infty} x_n + \beta \cdot \sum_{n=0} ^{\infty} y_n$? Eliminating non-integer solutions to $ab / (2\sqrt{ab} + a + b)$ "std::endl" vs "\n" Many C++ books contain example code like this...  std::cout &lt;&lt; "Test line" &lt;&lt; std::endl;   ...so I've always done that too. But I've seen a lot of code from working developers like this instead:  std::cout &lt;&lt; "Test line\n";   Is there a technical reason to prefer one over the other, or is it just a matter of coding style? How to set system-wide environment variables on OS X Mavericks Find the smallest disk in complex plane containing the eigenvalues of a matrix (NBHM 2012) Consider the given matrix  $$\left[\begin{matrix}1&amp; -2&amp; 3&amp; -2 \\1&amp; 1&amp; 0&amp; 3\\-1&amp; 1&amp; 1&amp; -1\\0&amp; -3&amp; 1&amp; 1&amp;\end{matrix}\right]$$  Find out the smallest disk like ($|z-1| &lt; r$ ) in the complex plane containing the eigenvalues of the given matrix.  One easiest method is to find out the eigenvalues from the characteristic equation of the matrix. I can do it so no problem with it.   I am looking for a method to solve the problem without the above method that can be evaluated in very short time. This type of method is possible, I believe.  Thank you for your help ParametricPlot3D and Sphere Graphics Filling triangle doesn't seem to work with PGF/TikZ I was wondering if anyone had any clue on why my triangles are not filled in red within the following piece of code:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,3d}  \usepackage[active, pdftex, tightpage]{preview} \PreviewEnvironment[{[]}]{tikzpicture} \newcounter{number}  \begin{document} \begin{tikzpicture}[x  = {(-0.5cm,-0.5cm)},                     y  = {(0.9659cm,-0.25882cm)},                     z  = {(0cm,1cm)}] \begin{scope}[canvas is yx plane at z=0] \foreach \x / \y / \label in {1 / 0.4 / 1, 0.9 / 0.4 / 0, 1 / 0.5 / 1, 0.7 / 0.3 / 0, 0.8 / 0.4 / 0, 0.9 / 0.5 / 0, 1 / 0.6 / 1, 0.7 / 0.4 / 0, 0.4 / 0.4 / 0, 0.6 / 0.4 / 0, 0.5 / 0.4 / 0, 0.8 / 0.5 / 0, 0.9 / 0.6 / 0, 1 / 0.7 / 1, 0.7 / 0.5 / 0, 0.5 / 0.5 / 0, 0.4 / 0.5 / 0, 0.6 / 0.5 / 0, 0.8 / 0.6 / 0, 0.9 / 0.7 / 0, 1 / 0.8 / 1, 0.7 / 0.6 / 0, 0.6 / 0.6 / 0, 0.5 / 0.6 / 0} { \addtocounter{number}{1} \pgfmathparse{\value{number}}\let\k\pgfmathresult \draw (8 * \x, 8 * \y) node[inner sep=0, outer sep = -0.1pt,color=black,fill,circle] (node-\k) {}; };  \foreach \x / \y / \z / \trash in { 4/5/8/0, 9/11/16/0, 9/16/17/0, 11/10/18/0, 11/18/16/0, 10/8/15/0, 10/15/18/0, 8/5/12/0, 8/12/15/0, 5/2/6/0, 5/6/12/0, 2/1/3/0, 2/3/6/0, 17/16/24/0, 16/18/23/0, 16/23/24/0, 18/15/22/0, 18/22/23/0, 15/12/19/0, 15/19/22/0, 12/6/13/0, 12/13/19/0, 6/3/7/0} { \draw[fill=red]  (node-\x) --  (node-\y) --  (node-\z) -- cycle; } \end{scope} \end{tikzpicture} \end{document}) Prove that $\sum_{n=0}^\infty \frac{(-1)^n}{3n+1} = \frac{\pi}{3\sqrt{3}}+\frac{\log 2}{3}$ Prove that $$\sum_{n=0}^\infty \frac{(-1)^n}{3n+1} = \frac{\pi}{3\sqrt{3}}+\frac{\log 2}{3}$$   I tried to look at $$ f_n(x) = \sum_{n=0}^\infty \frac{(-1)^n}{3n+1} x^n $$  And maybe taking it's derivative but it didn't work out well.  Any ideas? Assume that given three predicates are presented below: $H(x)$: $x$ is a horse $A(x)$: $x$ is an animal $T(x,y)$: $x$ is a tail of $y$ Then, translate the following inference into an inference using predicate logic expressions and prove whether inference is valid or not (for instance, using natural deduction): Horses are animals.  Horses' tails are tails of animals. My thoughts: I am quite good at translating predicate logic expressions, but here I struggled to come up with formula for Horses' tails. My initial idea was to consider similar sentence such as &quot;w is a tail of a horse&quot; to form required inference, but it was not successful. Would be welcomed to hear your ideas about this task. Why is there no article in "We are Family"?