title: sed command on single line input
body: <p>I am using SunOS 10.</p>
  
  <p>I am trying to replace the <code>:</code> character at the end of line if the word contains <code>:</code> in it on SunOs I am using the below command for it.</p>
  
  <pre><code>echo -n "test:" | sed 's/:$//g'
  </code></pre>
  
  <p>its not working. what I did wrong here?  </p>
  
  <p>The same is working fine in GNU/Linux.</p>