title: How to replace space with \(space) using sed?
body: <p>When I use sed to replace all the spaces with X, the command works, the command being:</p>
  
  <pre><code>sed 's/ /X/g' filelist.tmp
  </code></pre>
  
  <p>However, when I try the same to replace all occurrences of space with \space, the code being :</p>
  
  <pre><code>sed 's/ /\ /g' filelist.tmp
  </code></pre>
  
  <p>It doesn't work. What am I doing wrong? Note that I'm new to shell scripting.</p>