title: Command 'sed' didn't work on Solaris
body: <p>I have file 'result.xml'.</p>
  
  <blockquote>
    <p>&lt;date&gt;10/19/2011 12:11:05 AM&lt;/date&gt;<br/>&lt;name&gt;Jack&lt;/name&gt;</p>
  </blockquote>
  
  <p>I want to replace date in tag &lt;date&gt;10/19/2011 12:11:05 AM&lt;/date&gt; with &lt;date&gt;MM/DD/YYYY HH:MM:SS AM&lt;/date&gt;.</p>
  
  <p>The output file that I want is</p>
  
  <blockquote>
    <p>&lt;date&gt;MM/DD/YYYY HH:MM:SS AM&lt;/date&gt;<br/>&lt;name&gt;Jack&lt;/name&gt;</p>
  </blockquote>
  
  <p>I use command</p>
  
  <pre><code>sed '%date% c\&lt;date&gt;MM/DD/YYYY HH:MM:SS AM&lt;\/generate_date&gt;' result.xml &gt; output.xml
  </code></pre>
  
  <p>and this command is work on Linux but didn't work on Solaris10 that have error message 'sed: command garbled'</p>
  
  <p>I found sed command with 'c\' option didn't work on solaris, could you me advice to solve this problem.</p>
  
  <p>Thank you.</p>