<?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 Maximum Line Length? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136722#M688712</link>
    <description>Hi Daniel:&lt;BR /&gt;&lt;BR /&gt;I suspect that this is about 2048 characters, although I can't say for sure.&lt;BR /&gt;&lt;BR /&gt;Use Perl --- it doesn't have silly limits.  Post your command (that dumps).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 21 Oct 2008 16:26:52 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-10-21T16:26:52Z</dc:date>
    <item>
      <title>Sed Maximum Line Length?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136721#M688711</link>
      <description>An application is trying to run a sed command against a one line file with about 80,000 characters. Sed coredumps. Can someone tell me the maximum line length sed will handle? I'm running 11.11 and sed is patched with PHCO_31246.</description>
      <pubDate>Tue, 21 Oct 2008 16:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136721#M688711</guid>
      <dc:creator>Daniel Correa</dc:creator>
      <dc:date>2008-10-21T16:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Maximum Line Length?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136722#M688712</link>
      <description>Hi Daniel:&lt;BR /&gt;&lt;BR /&gt;I suspect that this is about 2048 characters, although I can't say for sure.&lt;BR /&gt;&lt;BR /&gt;Use Perl --- it doesn't have silly limits.  Post your command (that dumps).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 21 Oct 2008 16:26:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136722#M688712</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-21T16:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Maximum Line Length?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136723#M688713</link>
      <description>Or use GNU sed with no limits.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/sed/manual/sed.html#Limitations" target="_blank"&gt;http://www.gnu.org/software/sed/manual/sed.html#Limitations&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is a comment on the above limits to..&lt;BR /&gt;&lt;BR /&gt;The posix standard specifies that conforming sed implementations shall support at least 8192 byte line lengths. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2008 16:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136723#M688713</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-10-21T16:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Maximum Line Length?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136724#M688714</link>
      <description>It seems to fail somewhere between 75k and 80k characters. The command is;&lt;BR /&gt;&lt;BR /&gt;cat $TMP_FILE_1 | sed -e 's/start=//g' -e 's/stop=//g' -e 's/BalancerEnable//g' -e 's/BalancerDisable//g' -e 's/kill+//g' -e 's/msg=AllReference//g' -e 's/msg=Shutdown//g' -e 's/msg=ShutdownCritical//g' &amp;gt; ${AMC_HOME}/work/AmcDmn_${USER}RO_output.xml &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2008 16:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136724#M688714</guid>
      <dc:creator>Daniel Correa</dc:creator>
      <dc:date>2008-10-21T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Maximum Line Length?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136725#M688715</link>
      <description>Hi (again) Daniel:&lt;BR /&gt;&lt;BR /&gt;Since you are using simple substitutions, you can easily convert your needs to Perl:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's/start=//g;s/stop=//g;s/BalancerEnable//g' file&lt;BR /&gt;&lt;BR /&gt;Notice that all I did is use a semicolon to repeat each substitution instead of separate 'sed -e' programs.&lt;BR /&gt;&lt;BR /&gt;If you want to update inplace, making a backup copy of your file do:&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's/start=//g;s/stop=//g;s/BalancerEnable//g' file&lt;BR /&gt;&lt;BR /&gt;...the original file wikll be preserved as "file.old".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2008 16:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136725#M688715</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-21T16:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Maximum Line Length?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136726#M688716</link>
      <description>Thanks James.  Will try your perl suggestion.</description>
      <pubDate>Tue, 21 Oct 2008 19:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136726#M688716</guid>
      <dc:creator>Daniel Correa</dc:creator>
      <dc:date>2008-10-21T19:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Maximum Line Length?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136727#M688717</link>
      <description>Perl does teh trick.</description>
      <pubDate>Tue, 21 Oct 2008 19:32:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-maximum-line-length/m-p/5136727#M688717</guid>
      <dc:creator>Daniel Correa</dc:creator>
      <dc:date>2008-10-21T19:32:17Z</dc:date>
    </item>
  </channel>
</rss>

