title: Empty line missing after using echo and sed
body: <p>I have written one shell script which replaces some properties in a properties file.But after the script is run there is no empty line at the end of file which was present before replacement.</p>
  
  <pre><code>file=my_file.properties
  file_content=$(cat $file | sed "s@a=.*@a=b@g") #making a=b
  file_content=$(echo "${file_content}" | sed "s@x=.*@x=y@g") #making x=y
  echo "${file_content}" &gt; $file
  </code></pre>
  
  <p>my_file.properties is something like</p>
  
  <pre><code> 1)a=v
   2)b=c
   3)x=b
   4)
  </code></pre>
  
  <p>Note there is blank line at the end.These numbers are just for displaying the empty line</p>