How can I prepend the value of a variable to a column in bash?
external variable in awk
I have several hundred Illustrator files that are formatted similarly, and for legal reasons I need to replace a font in all of them. Even with the 'Find font' tool, that's a hell of a lot of fonts to replace by hand.  Is there some way of automating it? For example, using Bridge? Illustrator (CS5) doesn't offer many options in Bridge, compared to the automation options offered by Photoshop. I also don't see any option for running actions on multiple Illustrator files.  Also, creating a repeatable action for replacing the font doesn't seem to work: instead of repeating my action, it brings up the dialog box an waits for me to tell it to replace them.  As a programmer I'm prepared to edit the files directly if it can be done without breaking them.    Update: The 'Batch...' menu item from Illustrator's actions panel menu allows the same action to be performed on a folder of files. It doesn't fix the Find Fonts action waiting for input though. Toggling the dialog off makes the action do nothing at all. I need to calculate the following indefinite integral:  $$I=\int \frac{1}{\cos^3(x)}dx$$  I know what the result is (from Mathematica):  $$I=\tanh^{-1}(\tan(x/2))+(1/2)\sec(x)\tan(x)$$  but I don't know how to integrate it myself. I have been trying some substitutions to no avail.   Equivalently, I need to know how to compute:  $$I=\int \sqrt{1+z^2}dz$$  which follows after making the change of variables $z=\tan x$. A limit ordinal $\gamma&gt;0$ is said to be indecomposable iff $\nexists\alpha,\beta&lt;\gamma$ such that $\alpha+\beta=\gamma$.  In view of this definition, I’m trying to prove the equivalence of the following statements for limit ordinals $\gamma$:  (1) $\gamma$ is indecomposable.  (2) $\alpha+\gamma=\gamma$ $\forall\alpha&lt;\gamma$.  (3) $\gamma=\omega^\alpha$ for some $\alpha\in\mathrm{ON}$.  I’ve been able to get $(1)\implies(2)$ and $(3)\implies(1)$, but I have nothing more than scratch work for $(2)\implies(3)$.  Any suggestions would be appreciated. How to determine function name from inside a function Allow the author to delete their own question after closure, if other rules permit it I've read through a few "I want to delete my own question" threads on  already, and haven't found any that particularly cover this case.  I asked a question recently on :    This was voted closed as a duplicate of this question:    Since the latter question was obviously an appropriate duplicate, and my question had no votes or answers whatsoever, I decided I would just delete it.  But then, I was greeted by this error:     To allow for possible reopening, you may delete in 2 days     This all happened within hardly 20 minutes of me posting the question in the first place.  I fail to understand the point of this.  Perhaps if there were some up-votes or answers to the question, it might make sense.  However, as it stands, we now have a question with:   No votes whatsoever (up or down). No answers. Only a single (and largely irrelevant) comment not made by the OP. Five 3k+ rep users agreeing it is duplicate and therefore superfluous. The OP expressly desiring the question to be deleted, implying:   The OP has probably reviewed the duplicate question, and found their answer there. The question holds no further value to the OP. The OP agrees (with the close-voters) that the question provides no added value to the community.    At this point, what good reason could there be for disallowing the OP to delete their own question?  Could the system be modified to permit this? How to find the shortest string in a list in Python Consider $X = (a+b)^n-a^n-b^n$  where  $a$ and $b$ and $a+b$ are not divisible by $n$, $n&gt;=3$ is positive and prime, $a \ne b$ and both are greater than 1.  By the binomial expansion we know $X$ is divisible by $n$, but how can we study whether $X$ is divisible by $n^2$ or other powers of $n$? Specifically I am interested to prove $X$ is NOT divisible by $n^2$, but I am not sure how to prove or disprove it. How to make a bibliography (for total beginners)? A positive polynomial is the sum of two squares in $\mathbb{R}[X]$ Let $P\in\mathbb{R}[X]$ be a positive polynomial.  I want to show that there exists $A,B\in\mathbb{R}[X]$ so that $P=A^2+B^2$    $\displaystyle P=a\prod_{k=0}^q(x-a_k)\prod_{k=0}^{2p}(x-b_k)=a\prod_{k=0}^q(x-a_k)\prod_{k=0}^p(x^2-2\Re(b_k)+|b_k|^2)$ where $a$ is the leading coefficient, $a_k$ are the real rooks, $b_k$ are the complex roots.  What can i do now ? I know that the identity $(a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2$ should come in handy, but I can't figure out :  1) How to show that the product real roots is a square  2) How to use the above identity for the complex roots.  If I can solve those two points, then I can solve the problem. How can I prevent system clipboard image data being pasted into a WPF RichTextBox It's common in C++ to name member variables with some kind of prefix to denote the fact that they're member variables, rather than local variables or parameters. If you've come from an MFC background, you'll probably use m_foo. I've also seen myFoo occasionally.  C# (or possibly just .NET) seems to recommend using just an underscore, as in _foo. Is this allowed by the C++ standard? How will the super massive black hole affect our galaxy? Indian Trains Wait List - will I get a seat? After the  of registering an account to book train tickets online using my British VISA card, I finally got into a position of being able to book a ticket, but what it appears to be telling me is that I'm only being added to a wait list, which I assume means my tickets aren't confirmed.  Can someone explain how the wait list works, and what my chances are of getting on the train successfully?    It currently says the wait list is 7 The train is the Mandor Express, from Delhi to Jodhpur on the 18th of Nov   Update: So I got the train! Although it didn't get confirmed until a few hours before it was due to leave. Is Stack Exchange / Stack Overflow available for private or internal use? Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia. I have just upgraded my system but it boots to Low Graphics mode by default. I have seen questions on how to solve this problem and they all suggest to run a couple of commands from a command-line interface.  But there isn't any command-line console by default in Low Graphics mode and hence, I cannot run those commands. And, the answers I saw to solve the problem doesn't explain this situation either.  How to switch to a command-line console in order to run the commands in Low Graphics mode? Today I updated to version 2.18.52 &amp; I can’t see the names of the people who send me a message. The only thing I see is the WhatsApp logo and the word “message”.    I can’t also see the status my friends posts, they all look black. I uninstalled the app, reset my phone &amp; nothing seems to work so far. The assumptions are:    Alice and Bob have perfectly synchronized clocks Alice and Bob have successfully exchanged a pair of entangled photons   The idea is simply to have Alice and Bob perform the Quantum Eraser Experiment (doesn't need to be the delayed choice).   Alice and Bob agree on a specific time when Bob's photon will be between the "path marker" (which is usually just after the slits) and the detector.  If Alice acts collpasing the wave-function on her photon, the interference pattern will disappear. If not it won't.  Alice and Bob can be spatially separated...  What am I misunderstanding?   The only meaningful difference from this spatially separated quantum eraser experiment to one done on tabletop is that you won't be able to use a coincidence detector, but that is not impeditive to identifying the interference pattern, just will make errors more probable. Which we should be able to deal with a appropriate protocol...  There is a experimental paper with a small amount of citations pointing out to the breaking of complementarity in a very similar setup: How to run 32-bit app in Ubuntu 64-bit? I installed Ubuntu 14.04 and the current Android development SDK, which contains 32-bit executables. I found that I cannot run those 32-bit binaries. Trying to start them from bash gives me an error: $ ./adb bash: ./adb: No such file or directory  It is there though: $ ls -al ./adb -rwxrwxrwx 1 thomas thomas 1231255 Jan 17 13:31 ./adb $ file ./adb ./adb: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped.   Same symptom for all the other 32-bit tools in the Android SDK. In olden days one could just install 32-bit libraries on 64-bit Ubuntu to get 32-bit support, but that does not seem to work anymore. How do I run 32-bit apps on a 64-bit Ubuntu distribution? How to find the determinant of this $3 \times 3$ Hankel matrix? Today, at my linear algebra exam, there was this question that I couldn't solve.   Prove that $$\det \begin{bmatrix}  n^{2} &amp; (n+1)^{2} &amp;(n+2)^{2} \\  (n+1)^{2} &amp;(n+2)^{2}  &amp; (n+3)^{2}\\  (n+2)^{2} &amp; (n+3)^{2} &amp; (n+4)^{2} \end{bmatrix} = -8$$   Clearly, calculating the determinant, with the matrix as it is, wasn't the right way. The calculations went on and on. But I couldn't think of any other way to solve it. Is there any way to simplify $A$, so as to calculate the determinant? Best WPF open source projects I have programmed with WPF for more than a year. When I started there weren't so many examples and guidelines to follow, now the situation is much more better.  I would like to ask you some help in listing the best WPF (open) source code examples or projects that you suggest to study in order to learn more about project structure, best practices, etc.  Thank you, Marco