title: remove newline from end of string in bash - line continuations
body: <p>I know there are several different ones open and answered but mine is a little different. I am trying to do this in bash.</p>
  
  <p>I have this file:</p>
  
  <pre><code>Line1 asd asd asd \
      asd asd asd \
  
  Line2 asd asd asd \
      asd asd asd \
  
  Line3 asd asd asd \
      asd asd asd \
  
  Line4 asd asd asd \
      asd asd asd \
  </code></pre>
  
  <p>The ouput I would like is:</p>
  
  <pre><code>Line1 asd asd asd asd asd asd
  Line2 asd asd asd asd asd asd
  Line3 asd asd asd asd asd asd
  Line4 asd asd asd asd asd asd
  </code></pre>
  
  <p>So that is is easier to read in as a bash loop. What command would allow me to do this?</p>
  
  <p>Thanks in advance.</p>