<?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: Help with sed!? (RTFF,RTFM I hear you cry.......) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629127#M40645</link>
    <description>Thanks for the reply's I cunningly dual posted this question with the wonder that is netscape and have received both your and their great reply's. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;-ChaZ-&lt;BR /&gt;Ps. I'll dish the points when netscape is back upto speed!&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Dec 2001 15:02:38 GMT</pubDate>
    <dc:creator>Charles Harris</dc:creator>
    <dc:date>2001-12-11T15:02:38Z</dc:date>
    <item>
      <title>Help with sed!? (RTFF,RTFM I hear you cry.......)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629123#M40641</link>
      <description>Dear all, &lt;BR /&gt;&lt;BR /&gt;Quick question:- &lt;BR /&gt;&lt;BR /&gt;Sed. I'm sure in my glory days, I used to use sed to do text replacement on files (nothing wrong so far)....but here's the clintcher.. without writing the stdout to another file or did I? - ie replacing                                        something within a file without creating a new version via redirection of stout. &lt;BR /&gt;&lt;BR /&gt;Any tips pointers warmly received as ever, even RTFM's although if I trawl another sed how-to I might explode. &lt;BR /&gt;&lt;BR /&gt;Cheers, &lt;BR /&gt;&lt;BR /&gt;-ChaZ-</description>
      <pubDate>Tue, 11 Dec 2001 08:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629123#M40641</guid>
      <dc:creator>Charles Harris</dc:creator>
      <dc:date>2001-12-11T08:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with sed!? (RTFF,RTFM I hear you cry.......)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629124#M40642</link>
      <description>Hi&lt;BR /&gt;  with sed you cannot do text replacement inline :(. you have to use perl &lt;BR /&gt;&lt;BR /&gt;...BPK...</description>
      <pubDate>Tue, 11 Dec 2001 10:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629124#M40642</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-12-11T10:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with sed!? (RTFF,RTFM I hear you cry.......)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629125#M40643</link>
      <description>Hi,&lt;BR /&gt;Without an intermediate file ... I don't think that's possible in a script. Closest I could get was &lt;BR /&gt;(sed 's/Hallo/hallo/' &amp;lt; file1 &amp;gt; /tmp/file1) &amp;amp;&amp;amp; (cat /tmp/file1 &amp;gt; file1) &amp;amp;&amp;amp; (rm -f /tmp/file1)&lt;BR /&gt;&lt;BR /&gt;... which is not at all what you asked ...&lt;BR /&gt;Tom Geudens :-(</description>
      <pubDate>Tue, 11 Dec 2001 12:23:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629125#M40643</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2001-12-11T12:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with sed!? (RTFF,RTFM I hear you cry.......)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629126#M40644</link>
      <description>Not really an issue:&lt;BR /&gt;&lt;BR /&gt;for small files under 16k:&lt;BR /&gt;&lt;BR /&gt;sed -e "s/oldstr/newstr/g" filename|tee &amp;gt;filename&lt;BR /&gt;&lt;BR /&gt;for larger files, cheat:&lt;BR /&gt;&lt;BR /&gt;dd if=filename bs=3000000|sed -e "s/oldstr/newstr/g" &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;of course adjust the "bs" (block size accordingly to input file size)&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 13:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629126#M40644</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-12-11T13:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with sed!? (RTFF,RTFM I hear you cry.......)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629127#M40645</link>
      <description>Thanks for the reply's I cunningly dual posted this question with the wonder that is netscape and have received both your and their great reply's. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;-ChaZ-&lt;BR /&gt;Ps. I'll dish the points when netscape is back upto speed!&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 15:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629127#M40645</guid>
      <dc:creator>Charles Harris</dc:creator>
      <dc:date>2001-12-11T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with sed!? (RTFF,RTFM I hear you cry.......)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629128#M40646</link>
      <description>Hello Charles,&lt;BR /&gt;&lt;BR /&gt;You cannot do it with sed. SED is the "Stream" ED. If you want to replace 'in place' you'll have to pipe commands to ed, like this:&lt;BR /&gt;&lt;BR /&gt;echo "1,$ s/oldstring/newstring&lt;BR /&gt;w /tmp/testfile&lt;BR /&gt;q" | ed /tmp/testfile&lt;BR /&gt;&lt;BR /&gt;This will change oldstring by newstring on /tmp/newfile&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paga&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 15:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629128#M40646</guid>
      <dc:creator>Marco Paganini</dc:creator>
      <dc:date>2001-12-11T15:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with sed!? (RTFF,RTFM I hear you cry.......)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629129#M40647</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;i don't think you can do it with sed. but i solved this problem with ex:&lt;BR /&gt;&lt;BR /&gt;ex file_to_edit &amp;lt;&amp;lt; EOF&lt;BR /&gt;1,\$s/oldstring/newstring/&lt;BR /&gt;w&lt;BR /&gt;q&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Wed, 12 Dec 2001 07:24:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-sed-rtff-rtfm-i-hear-you-cry/m-p/2629129#M40647</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-12-12T07:24:00Z</dc:date>
    </item>
  </channel>
</rss>

