title: sed: how to replace \0, but not \\0
body: <p>I'm doing a migration from mysql to postgres. As part of that I'm processing the mysql dump using sed before loading that into postgres.</p>
  
  <p>My MySQL dump has some <code>\0</code> characters and postgres doesn't like them. So I'm replacing them using a space.</p>
  
  <pre><code>sed 's/\\0/ /g' $dumpfile
  </code></pre>
  
  <p>Noticed an issue when the line has <code>320.48k\\02. Easy Listening</code>.</p>
  
  <pre><code>$ echo '320.48k\\02. Easy Listening' | sed 's/\\0/ /g'
  320.48k\ 2. Easy Listening
  </code></pre>
  
  <p>Thats not what I quite wanted. <code>\\</code> characters are followed by <code>0</code> is not a null character. and I want to keep as it is.</p>
  
  <p>Any sed experts around to help?</p>