Is there a command line way to change text in the file? Like say I would like to change all strings "lukuunottamatta" to the form "lukuun ottamatta" and "Lukuunottamatta" to the form "Lukuun ottamatta".
Replacing strings in files based on certain search criteria is a very common task. How can I    replace string foo with bar in all files in the current directory? do the same recursively for sub directories? replace only if the file name matches another string? replace only if the string is found in a certain context? replace if the string is on a certain line number? replace multiple strings with the same replacement replace multiple strings with different replacements
Separability over intersection of intermediate fields Let $E\mathop{/}F$ be a finite-degree normal extension of fields. Let $K$ and $L$ be intermediate fields (that is, $F\subseteq K\subseteq E$ and $F\subseteq L\subseteq E$) such that $E$ is separable over both $K$ and $L$. Show that $E$ is separable over $K\cap L$.   So I was thinking that if $f=\min_{K\cap L}(\alpha)$. Then $\min_{K}(\alpha)$ divides $f$. But if $f$ has repeated roots then I don't see what goes wrong.   Thanks! Cannot install R-forge package using install.packages Is there a way to send a file using POST from a Python script? Prove that if $n \in \mathbb{N}$, then $\sum_{d|n}{(d(n))^3}=(\sum_{d|n}{d(n)})^2$ where $d(n)$ is the divisor function. Misplaced noalign after rowcolor in multicolumn mailto link with HTML body How can I write % into a file? How can I write % into an auxiliary file? % will not work, because LaTeX thinks that I start a comment with it (in the main file, not in the auxiliary file!), and \% will write \% into the file. How can it be accomplished?   \documentclass{article} \begin{document} \newwrite\outfile \immediate\openout\outfile=example.dat \immediate\write\outfile{%}% will not work, of course, but neither \% \immediate\closeout\outfile \end{document} Command to append line to a text file without opening an editor Assuming i have a line that i want to add to a file without opening an editor.  How could i append this line  alias list='ls -cl --group-directories-first'   to this file  config.fish Find the exact value of the infinite sum $\sum_{n=1}^\infty \big\{\mathrm{e}-\big(1+\frac1n\big)^{n}\big\}$ How can we find the exact value of the infinite sum  $$ \displaystyle\sum_{n=1}^\infty \left\{\mathrm{e}-\Big(1+\frac1n\Big)^n\right\}? $$  This problem appears in:  , p.114. How can a company use money from stock investors when they are constantly being bought and sold? How to prove $B-A \succeq 0 \Leftrightarrow$ ellipsoid $x^TBx \leq 1$ contains $x^TAx \leq 1$? Assume $A \in \textbf{S}^n_{++}$, an ellipsoid centered at the origin given by $$\mathcal{E}_A = \{x\mid x^TA^{-1}x \leq 1\}$$ Then we have $\mathcal{E}_A \subseteq \mathcal{E}_B $ if and only if $B-A \succeq 0$. This is the proposition in the Boyd &amp; Vandenberghe's  (pages 45-46). The authors gave only the result, without proof. How to prove it? How can I understand and prove the "sum and difference formulas" in trigonometry? The "" formulas often come in handy, but it's not immediately obvious that they would be true.  \begin{align} \sin(\alpha \pm \beta) &amp;= \sin \alpha \cos \beta \pm \cos \alpha \sin \beta \\ \cos(\alpha \pm \beta) &amp;= \cos \alpha \cos \beta \mp \sin \alpha \sin \beta \end{align}  So what I want to know is,    How can I prove that these formulas are correct? More importantly, how can I understand these formulas intuitively?   Ideally, I'm looking for answers that make no reference to Calculus, or to , although such answers are still encouraged, for completeness. Why is you subjective? (Catchy title, eh?)  I am asking the following on the photo.SE site:     How do you change from portrait to landscape in Lightroom   DANGER! DANGER! This appears to be subjective and is likely to be closed.  If I ask the following radically different question:     How do I change from portrait to landscape in Lightroom   ... there is no problem.  So, like the title says: Why is "you" subjective?  (And  where Jeff spills the regex) Which is the best way to install new hplip versions? Hplip is the software that drives most hp printers. Usually new printers are only supported in newer versions of the software. Canonical doesn't backport new versions packages to older Ubuntu versions, that means that newer drivers are not going to be available in the Software Center of older Ubuntu versions.  As an example yesterday I needed to hook a hp 1005p to a computer running 8.04. I was forced to install a newer hplip than the version available in the repositories. I installed it using the script from the hp page, but I'd like to know other alternatives.  Which is the best (technically, not the easiest) way to install it and why?. When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used? What are the proper uses of:   static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast type(value)   How does one decide which to use in which specific cases? How to transfer a DVD to my hard drive Can I have two UK visas simultaneously? I have a visitor UK visa valid until October 2017.  I also want to apply for a Tier 4 student visa. My studies in the UK start in September 2017.  If I apply for the student visa in June, will they simply issue an overlapping student visa, or will they cancel my visitor visa and I will not be able to come to the UK until September?  I am worried because in a similar situation with Schengen visas, my existing visa was canceled. I'm writing a thesis which is an aggregate of separate articles. I have the source code for the articles and I'm using \include to include them in the main document of the thesis. So in my main.tex (thesis document), I have  \include{article1} some pages in between the two articles \include{article2}   The problem that I'm getting is with the Appendix sections. In article 1, I have at the end:  \appendix \numberwithin{equation}{section} \section{Coefficients}\label{sec:Coeffic} \subsection{Good coefficients} then comes the first line of appendix   This gives in article 1 (when  compiled separately with the article class):     A. Coefficients      A.1. Good coefficients   and equation numbers in the Appendix A as (A.1), (A.2)  which is ok and what is expected.  When I put article 1 within main.tex, I use \include command. Also, I removed the document class for article 1 and put \chapter instead.  But when I compile main.tex (the thesis document), I get the appendix sections as:     .1 Coefficients      .1.1 Good coefficients   and the equation numbers in the appendix A as (.1.1), (.1.2) etc  My article 1 is treated as a chapter in the main thesis document (main.tex) and the title and section numbers, equation numbers are preceded by A in main.tex. This is what I want.  Maybe it would be ok to get the appendix in my main.tex as     A.A. Coefficients      A.A.1 Good coefficients   and the equation numbers in the Appendix as (A.A.1), (A.A.2) etc  to denote that it refers to appendix A of paper A. First A is for the first article and second A is for first appendix. How to get this? How can I delete all files from a directory when it reports "Argument list too long" Familiar form of address for a young, subordinate, woman that connotes respect (Female equivalent to 'Son') A(n often male) paternal figure could use the term 'son' in a fatherly way without referring to his biological Son.  Imagine a man has been verbally abused by a customer at work. His manger might say to him:     Come here son, I have something to tell you   about rude customers   Emphasis on the word I want gender-swapped  Is there a feminine equivalent for a subordinate that you respect?   From      son  (sŭn)   n.    1. One's male child.    2. A male descendant.    3. A man considered as if in a relationship of child to parent: a son of the soil.    4. One personified or regarded as a male descendant.    5. Used as a familiar form of address for a young man.    6. Son Christianity The second person of the Trinity.     Is there an equivalent for talking to a woman in a fatherly way?  The equivalent for TFD entry for daughter does not qualify it as 'familiar'        (often capital) a form of address for a girl or woman      Further more often such 'father-daughter' language patterns are negative, dismissive and lack respect.