<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sed -e works but sed -i not working in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sed-e-works-but-sed-i-not-working/m-p/5239366#M52108</link>
    <description>I ran the same command on a server running rhel4 and sed 4.1.2-6.  I get this output.&lt;BR /&gt;&lt;BR /&gt;[root@WSHQ-GFT01 tmp]# grep /usr/lbin/eod-error-chk.sh /tmp/root|sed -i 's/5/2/g&lt;BR /&gt;'&lt;BR /&gt;sed: can't read -: No such file or directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that helps me understand where my problem is.</description>
    <pubDate>Tue, 11 May 2010 15:07:37 GMT</pubDate>
    <dc:creator>Matt Shaffer_1</dc:creator>
    <dc:date>2010-05-11T15:07:37Z</dc:date>
    <item>
      <title>sed -e works but sed -i not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed-e-works-but-sed-i-not-working/m-p/5239365#M52107</link>
      <description>I'm confused to the max on this one.  running rhel3 on hp server.  sed version 4.0.7-3.  I run sed -e and the output is echo'ed to the screen properly.  I run sed -i and the changes are not made.  &lt;BR /&gt;&lt;BR /&gt;B1110-&amp;gt; grep /usr/lbin/eod-error-chk.sh /home2/matt/root&lt;BR /&gt;0 5 * * 2-6 /usr/lbin/eod-error-chk.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;B1110-&amp;gt; grep /usr/lbin/eod-error-chk.sh /home2/matt/root | sed -e s/5/2/g&lt;BR /&gt;0 2 * * 2-6 /usr/lbin/eod-error-chk.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;B1110-&amp;gt; grep /usr/lbin/eod-error-chk.sh /home2/matt/root | sed -i s/5/2/g&lt;BR /&gt;&lt;BR /&gt;B1110-&amp;gt; grep /usr/lbin/eod-error-chk.sh /home2/matt/root&lt;BR /&gt;0 5 * * 2-6 /usr/lbin/eod-error-chk.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;</description>
      <pubDate>Tue, 11 May 2010 14:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed-e-works-but-sed-i-not-working/m-p/5239365#M52107</guid>
      <dc:creator>Matt Shaffer_1</dc:creator>
      <dc:date>2010-05-11T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: sed -e works but sed -i not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed-e-works-but-sed-i-not-working/m-p/5239366#M52108</link>
      <description>I ran the same command on a server running rhel4 and sed 4.1.2-6.  I get this output.&lt;BR /&gt;&lt;BR /&gt;[root@WSHQ-GFT01 tmp]# grep /usr/lbin/eod-error-chk.sh /tmp/root|sed -i 's/5/2/g&lt;BR /&gt;'&lt;BR /&gt;sed: can't read -: No such file or directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that helps me understand where my problem is.</description>
      <pubDate>Tue, 11 May 2010 15:07:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed-e-works-but-sed-i-not-working/m-p/5239366#M52108</guid>
      <dc:creator>Matt Shaffer_1</dc:creator>
      <dc:date>2010-05-11T15:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: sed -e works but sed -i not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed-e-works-but-sed-i-not-working/m-p/5239367#M52109</link>
      <description>using wrong syntax.</description>
      <pubDate>Tue, 11 May 2010 15:08:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed-e-works-but-sed-i-not-working/m-p/5239367#M52109</guid>
      <dc:creator>Matt Shaffer_1</dc:creator>
      <dc:date>2010-05-11T15:08:00Z</dc:date>
    </item>
  </channel>
</rss>

