title: no newline in echo/printf in BASH while loop
body: <p>why on executing following script each printf (tried also with echo) is printed on the same line??</p>
  
  <pre><code>function read_dom () {
      local IFS=\&gt;
      read -d \&lt; ENTITY CONTENT
  }
  
  cat my_xml_file.xml | \
  {   while read_dom; do
          printf "(entity:content %s:%s)" $ENTITY $CONTENT
  }
  </code></pre>
  
  <p>Now, this produces a single line output:</p>
  
  <pre><code>(entity:content member:)(entity:content name:id)(entity:content /name:)
  </code></pre>
  
  <p>How do I change this to multiline, like:</p>
  
  <pre><code>(entity:content member:)
  (entity:content name:id)
  (entity:content /name:)
  </code></pre>