title: How to line wrap output in bash?
body: <p>I have a command which outputs in this format:</p>
  
  <pre><code>A
  B
  C
  D
  E
  F
  G
  I
  J
  </code></pre>
  
  <p>etc
  I want the output to be in this format</p>
  
  <pre><code>A B C D E F G I J
  </code></pre>
  
  <p>I tried using <code>./script | tr "\n" "  "</code> but all it does is remove <code>n</code> from the output
  How do I get all the output in one line. (Line wrapped)</p>
  
  <blockquote>
    <p>Edit: I accidentally put in grep while asking the question. I removed
    it. My original question still stands.</p>
  </blockquote>