title: Force printing on new line in bash in a while loop when using 2 commands
body: <p>I've been trawling the web and I can't seem a way force a second command to print on a new line in a while loop, using bash. Here's an example file:</p>
  
  <pre><code>$ cat testing
  foo
  bar
  testing
  hello
  </code></pre>
  
  <p>Here's an example loop:</p>
  
  <pre><code>$ cat testing | while read line; do echo -e $line, $(echo $line); done
  foo, foo
  bar, bar
  testing, testing
  hello, hello
  </code></pre>
  
  <p>I'd like to loop to print everything on a new line, like:</p>
  
  <pre><code>foo
  foo
  bar
  bar
  testing
  testing
  hello
  hello
  </code></pre>
  
  <p>I'd like this to include for if the output for the second command, the one in brackets, has more than one interation as an output, to also print this on a new line.</p>
  
  <p>Thanks,</p>