title: SED with "unmatched /" and odd behavior
body: <p>I have an input file that looks like this, and i was trying a couple transformations with sed :</p>
  
  <p>Original File :</p>
  
  <pre><code>DATA: gt_alv LIKF zfica_paym_cancel_alv OCCURS 0 WITH HFADFR LINF.
  DATA: gt_out LIKF zfica_paym_cancel_out OCCURS 0 WITH HFADFR LINF. 
  </code></pre>
  
  <p>I want to clean some characters based on their hexadecimal values, but i m getting an odd behavior from the box. ( Ran in MobaXterm )</p>
  
  <p>When i run : </p>
  
  <pre><code>sed -e $'s/\x20/\x040/g' testsed.txt
  </code></pre>
  
  <p>the output is :</p>
  
  <pre><code>DATA:0gt_alv0LIKE0zfica_paym_cancel_alv0OCCURS000WITH0HEADER0LINE.
  DATA:0gt_out0LIKE0zfica_paym_cancel_out0OCCURS000WITH0HEADER0LINE.
  </code></pre>
  
  <p>and it works as intended. But when i try to hit the null value x00 i get the following error :</p>
  
  <pre><code>sed -e $'s/\x00/\x040/g' testsed.txt
  </code></pre>
  
  <p>produces :</p>
  
  <pre><code>sed: unmatched '/'
  </code></pre>
  
  <p>I have tried various combination. Giving the ascii codes in octal doesnt work at all. But hex numbers work just find expect from the /x00 null. Can someone explain to me why this happens and if possible how to resolve it? Is it a problem with Moba? Thank you.</p>