title: Multiple lines to single line in Linux
body: <p>How to make the below given multiple lines to a single line in Linux?</p>
  
  <p>I am able to do with <code>xargs</code> but end of the every line has one space extra.</p>
  
  <p>From the below given output you can see 'JAS _Data' 'Exclusiv e' has a space.</p>
  
  <pre><code>Thu Feb 19 10:42:50: Submitted from host &lt;iitmlogin5-ib0&gt;, CWD &lt;$HOME/Bipin/JAS _Data/Big_Domain/128np_IC/Normal_queue&gt;, Output File &lt;file .stdout.159375&gt;, Error File &lt;file.stderr.159375&gt;, Exclusiv e Execution, 128 Task(s), Requested Resources &lt;span[ptile= 16]&gt;; RUNLIMIT
  </code></pre>
  
  <p>How to remove the extra space of each line and make it a single line?</p>
  
  <pre><code>[root@iitmlogin3 ~]# `bjobs -l 159375 | sed -n '/Submitted/,/RUNLIMIT/p' | xargs`
  Thu Feb 19 10:42:50: Submitted from host &lt;iitmlogin5-ib0&gt;, CWD &lt;$HOME/Bipin/JAS _Data/Big_Domain/128np_IC/Normal_queue&gt;, Output File &lt;file .stdout.159375&gt;, Error File &lt;file.stderr.159375&gt;, Exclusiv e Execution, 128 Task(s), Requested Resources &lt;span[ptile= 16]&gt;; RUNLIMIT
  [root@iitmlogin3 ~]#
  </code></pre>