title: Shell script: Remove all the space characters in a string
body: <p>I work on shell script and I want to remove all space characters in a string. 
  On another question I saw a <code>sed</code> command for replacing and tried to use it with sending null character in it:</p>
  
  <p><code>echo \0 | sed "s/ /${text}/"</code></p>
  
  <p>But it did not work.</p>
  
  <p>Any other way to do this?</p>