I have data as shown below. I want to convert it to a single line for each part (starting with #).  I want it as:  #6536  -  NEW [R]  -  *NONE*.   communicationFailureEvent  -  SITE  -  MSC_MR1_B02_KBN1(55/JANPAT4-1/D311-CE/DEL-ODM_L): 55 SITE  -  15/04/2018  11:21:55.   [0]  Last RSL Link Failure   -  FMIC  -  Critical -/-.   Config Tag 1  #7811  -  NEW [R]  -  *NONE*.   communicationFailureEvent  -  SITE  -  MSC_MR1_B17_KB3(8/PNB_3G/D323-CE/DEL-IBM_L): 8 SITE  -  25/04/2018  15:52:04.   [0]  Last RSL Link Failure   -  FMIC  -  Critical -/-.   Config Tag 3ed1  #5569  -  NEW [R]  -  *NONE*.   communicationFailureEvent  -  SITE  -  MSC_MR1_B22_GZBD2(49/TRISHUL-APT_3G/D441-GZ/GZB): 49 SITE  -  23/06/2018  08:28:54.   [0]  Last RSL Link Failure   -  FMIC  -  Critical -/-.   Config Tag 86d217  #3369  -  NEW [R]  -  *NONE*.   communicationFailureEvent  -  SITE  -  MSC_KB1_B13_KB2(19/KIRTI-NAGAR_3G/D342-EA/DEL): 19 SITE  -  30/06/2018  11:06:41.   [0]  Last RSL Link Failure   -  FMIC  -  Critical -/-.   Config Tag 82cb8c  #1641  -  NEW [R]  -  *NONE*.   communicationFailureEvent  -  SITE  -  MSC_KB1_B06_KB1(27/MOTINAGAR-NW_3G/D342-EA/DEL): 27 SITE  -  30/06/2018  12:08:59.   [0]  Last RSL Link Failure   -  FMIC  -  Critical -/-.   Config Tag 8540f6 =========================================================== #6536 NEW [R]   *NONE*. communicationFailureEvent SITE   MSC_MR1_B02_KBN1(55/JANPAT4-1/D311-CE/DEL-ODM_L): 55 SITE 15/04/2018    11:21:55. [0]  Last RSL Link Failure    FMIC    Critical -/-.   Config Tag 1
I have several big files with some measurements.   It looks this way:  N 12344;PE 9.9999999;... #S 0 0 31 44 75 130 165 196... #S_+ "2 5 2 3 3 1 1 2 3 1 2 2...  N 12345;PE 9.9999999;... #S 0 0 34 57 84 133 152... #S_+ "1 0 1 1 2 3 0 0 0...  N 12346;PE 9.9999999;... #S 0 0 31 44 73 140 169... #S_+ "3 3 4 0 0 2 1 2 4...  N 25104;PE 9.9999999;... #S 0 0 36 52 102 108 145... #S_+ "1 1 0 1 0 0 3 0 1...  N 25105;PE 9.9999999;... #S 0 0 32 58 88 130 143...   Sample is here:   The file is much bigger but I replaced part of the data with "..." to make it shorter.  I need to somehow replace the line ends before "#S" - in fact simply merge the "N" line with the following two ones into one line (or with the following three ones so I can get rid of the blank lines). Expect output like this:  N 12344;PE 9.9999999; #S 0 0 31 44 75 130 165 196 #S_+ "2 5 2 3 3 1 1 2 3 1 2 2... N 12345;PE 9.9999999; #S 0 0 34 57 84 133 152 #S_+ "1 0 1 1 2 3 0 0 0... N 12346;PE 9.9999999; #S 0 0 31 44 73 140 169 #S_+ "3 3 4 0 0 2 1 2 4... N 25104;PE 9.9999999; #S 0 0 36 52 102 108 145 #S_+ "1 1 0 1 0 0 3 0 1... N 25105;PE 9.9999999; #S 0 0 32 58 88 130 143...   Is this possible to achieve using some command-line utility in linux?   My knowledge is quite limited in this area so I would appreciate any help.  thanks
On Debian systems (and derivatives):  $ dpkg --search /bin/ls coreutils: /bin/ls   That is, the file /bin/ls belongs to the Debian package named coreutils.  But this only works if the package is installed. What if it's not? How prove this equation $\alpha=\aleph_{0}\alpha$ Question:     let $\alpha$ be a infinite cardinal , show that:   $$\alpha=\aleph_{0}\alpha$$   where $\aleph_{0}$ is the cardinality of the natural numbers is denoted aleph-null   this equation is from a book,and I can't prove it,and the author say this is important equation,and can't prove it.Thank you for you help Showing that $\mathbb{R}$ and $\mathbb{R}\backslash\mathbb{Q}$ are equinumerous using Cantor-Bernstein I need to prove that $\mathbb{R}\backslash\mathbb{Q} \sim \mathbb{R} $  Using Cantor-Bernstein, need to show an injection from $\mathbb{R}\backslash\mathbb{Q}$ to $\mathbb{R}$ and from $\mathbb{R}$ to $\mathbb{R}\backslash\mathbb{Q}$.    $\mathbb{R}\backslash\mathbb{Q}$ is a subset of $\mathbb{R}$ so only need to show injection from $\mathbb{R}$ to $\mathbb{R}\backslash\mathbb{Q}$ to complete the proof.    Possible injection: $f:\mathbb{R}\to \mathbb{R}\backslash\mathbb{Q}$ defined as $f(x) = \pi x$ if $x$ is not a multiple of $\pi$; otherwise $f(x) = \sqrt{2} x$.    Not sure if $f$ actually is an injection... Rules for refreezing food bash dynamic (variable) variable names I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:  \begin{figure}[ht] \begin{center} \advance\leftskip-3cm \advance\rightskip-3cm \includegraphics[keepaspectratio=true,scale=0.6]{slike/visina8} \caption{} \label{visina8} \end{center}\end{figure}   to place my figures. How can I tell latex I REALLY want the figure in that specific place, no matter how much whitespace will be left? I want to make a generic class that accepts only serializable classes, can it be done with the where constraint?  The concept I'm looking for is this:  public class MyClass&lt;T&gt; where T : //[is serializable/has the serializable attribute] There are  with not having ftp and telnet present in 10.13 now as per Apple's dictate.  Has anyone found a solid way to bring BSD ftp and telnet back to macOS vs using inetutils? How do I know what symbols/characters are available in a font package? I usually use xelatex, but I'm exploring pdflatex now. When loading specific fonts in xelatex, I can always know what characters the font has available, since I can inspect the font file in any font viewing program, or I can find out the hard way by just entering the unicode and see if the character is displayed in the output. But how does this work with a font package?  Say, for instance, that I would like to use phonetic symbols in the  font. How do I know whether the font has phonetic symbols (I assume it does), and how do I know what command I need to type in order to make them appear? My only resource is , but this only tells me what characters/commands there are available in LaTeX2e by default (depending on the font encoding), and what symbols I can find in specific packages. Phonetic symbols, for instance, are said to be in the tipa package. Does that mean I am locked to tipa if I want to use phonetic symbols with pdflatex?  Here's a pointless MWE:  \documentclass{article} \usepackage{gentium} \begin{document} Please give me some phonetic symbols here? \end{document} Adding Layer Files (.lyr, .lyrx) to QGIS At college we use ArcGIS Desktop 10, but that does not function on my Mac so I have QGIS there instead.  I want to do my exercises with QGIS, but in ArcGIS Desktop we use .lyr files with ArcMap and .lyrx files with ArcGIS Pro, and they are not supported by QGIS.  Does anyone know, how I can connect the *.lyr files to my *.shp files to use them on my Mac with QGIS? Topical example:  'There was a scuffle outside the local pub. There appears to be no connection with religious extremists.'  ...but now you're wondering if there was. It's a nasty tactic used to raise fear and doubt - deliberately calling attention to something by explicitly denying it.  What's the term for this? Calendar.getInstance(TimeZone.getTimeZone("UTC")) is not returning UTC time Is it true that $0.999999999\ldots=1$? Why is it sensical for a proposition with a false antecedent to validate to true? Includepdf causes an error message from pgfplots externalization I have a file test.pdf which I include in a document containing also an externalized pgfplots picture.  When I compile the following code, I get the error message Sorry, the system call pdflatex ... did NOT result in a usable file.  In order to make my code work, I first need to remove the includepdf statement, compile (to create the externalized figures) and then compile again with the includepdf statement.  I suppose that it is a bug, or is there any possibility to solve it ?  Of course, the file test.pdf is totally independent from the externalized pictures from pgfplots.  \documentclass{scrbook}   \usepackage{pgfplots}  \pgfplotsset{compat=1.8}  \usepgfplotslibrary[external]  \tikzexternalize[shell escape=-enable-write18]  \usepackage{pdfpages}   \begin{document} \includepdf{report_test-figure44}   \begin{tikzpicture}  \begin{axis}[  xlabel=Cost, ylabel=Error]  \addplot[color=red,mark=x] coordinates {  (2,-2.8559703) (3,-3.5301677) }; \end{axis}  \end{tikzpicture}   \end{document} Suppose that $S_0$ and A are positive numbers, let $$S_{n+1} = \frac{1}{2}\left(S_n +\frac{A}{S_n}\right)$$ with $n \geq 0 $.      (a)Show that $S_{n+1} \geq \sqrt{A} $ if $n \geq 0$       (b)Show that $S_{n+1} \leq S_n $ , if $n \geq 1$      (c) Show that $s= \lim\limits_{n \rightarrow \infty} S_n$ exists      (d) find s   (a) Show that $S_{n+1} \geq \sqrt{A} $ if $n \geq 0$  Given $$P_n:  S_{n+1} = \frac{1}{2}\left(S_n +\frac{A}{S_n}\right) \geq \sqrt{A}$$  $$P_0: S_{1} = \frac{1}{2}\left(S_0 +\frac{A}{S_0}\right) \geq \sqrt{A}  $$  We assume that $P_n$ is true  $$P_{n+1}: S_{n+2}= \frac{1}{2}\left(S_{n+1} +\frac{A}{S_{n+1}}\right)$$ by assumption $$S_{n+2}= \frac{1}{2}\left(S_{n+1}\left(1 +\frac{A}{(S_{n+1})^2}\right)\right) \geq \frac{1}{2}\left(\sqrt{A}\left(1 +\frac{A}{(\sqrt{A})^2}\right)\right)$$ $$ S_{n+2}= \frac{1}{2}\left(S_{n+1} +\frac{A}{S_{n+1}}\right) \geq \sqrt{A}  $$  It follows that $S_{n+1} \geq \sqrt{A} $    (b) Show that $S_{n+1} \leq S_n $ , if $n \geq 1$  $$S_{n+1} \leq S_n$$ $$\frac{1}{2}\left(S_n +\frac{A}{S_n}\right) \leq S_n $$ Dividing by $S_n$ $$\frac{1}{2}\left(1 +\frac{A}{S_n^2}\right) \leq 1 $$ $$\frac{A}{2S_n^2} \leq \frac{1}{2}$$ $$A \leq S_n^2$$ $$S_n \geq \sqrt{A}$$ As  $S_{n+1} \leq S_n$ yields a true statement, it follows $S_{n+1} \leq S_n$ is true.    (c) Show that $s= \lim\limits_{n \rightarrow \infty} S_n$ exists  Since $S_{n+1} \leq S_n$, the sequence is non-increasing,   using the non-increasing theorem stating that      if $\{S_n\}$ is non-increasing then $$\lim\limits_{n \rightarrow &gt; \infty} S_n = \inf\{S_n\} $$     (d) find s    Is the argumentation in (a) and (b) appropriate? Also, I have to admit I m getting less confident in my argumentation (c) and (d). How to proceed in (c) and (d)?  Much appreciated for your input or help. Student missing exam for “medical reasons” Chance of selecting the last k pages in correct order from a set of n pages How to remove Open CTI VF softphone page from salesforce left side Open CTI Softphone VF page is showing in salesforce left side. How to remove this ? Screenshot attached I have the following validation rule:  AND(  $Profile.Name &lt;&gt; 'System Administrator',  OR(  ISPICKVAL(PRIORVALUE(Level__c), "Archived"),  ISPICKVAL(PRIORVALUE(Level__c), "Closed")  )  )   This validation rule is on the opportunity object, and what I want to achieve is, if the picklist Level__c is either set to Archived or Closed, the opportunity record can only be edited by the System Administrator.  For some reason though, the validation rule also triggers, when I want to set the Level__c to Archived or Closed. But this is not what I want.   Any idea what's wrong with the validation rule?