title: remove ^M characters from file using sed
body: <p>I have this line inside a file:</p>
  
  <pre><code>ULNET-PA,client_sgcib,broker_keplersecurities
  ,KEPLER
  </code></pre>
  
  <p>I try to get rid of that ^M (carriage return) character so I used:</p>
  
  <pre><code>sed 's/^M//g'
  </code></pre>
  
  <p>However this does remove everything after ^M:</p>
  
  <pre><code>[root@localhost tmp]# vi test
  ULNET-PA,client_sgcib,broker_keplersecurities^M,KEPLER
  
  [root@localhost tmp]# sed 's/^M//g' test
  ULNET-PA,client_sgcib,broker_keplersecurities
  </code></pre>
  
  <p>What I want to obtain is:</p>
  
  <pre><code>[root@localhost tmp]# vi test
  ULNET-PA,client_sgcib,broker_keplersecurities,KEPLER
  </code></pre>