<?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: How manage very long line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129533#M674763</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;using both sed and perl each command goes in stuck with no error.&lt;BR /&gt;The ony thing i can do at that point is to kill the process, but the file is not changed.&lt;BR /&gt;&lt;BR /&gt;rgd&lt;BR /&gt;angelo</description>
    <pubDate>Fri, 12 Sep 2008 12:53:40 GMT</pubDate>
    <dc:creator>SILVERSTAR</dc:creator>
    <dc:date>2008-09-12T12:53:40Z</dc:date>
    <item>
      <title>How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129527#M674757</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a file, each line inside has a variable lenght and is terminated by a carriage return.&lt;BR /&gt;Line lenght may be long 4000 char.&lt;BR /&gt;&lt;BR /&gt;In each line I have to substitude the the word 'blabla' with word 'ccccc'.&lt;BR /&gt;&lt;BR /&gt;I am not able to manage so long line with awk  or vi, each time i get the error 'line lenght too long'.&lt;BR /&gt;Foe example when I use awk the error is:&lt;BR /&gt;awk: Input line 0 cannot be longer than 3,000 bytes.&lt;BR /&gt;&lt;BR /&gt;Thank for any suggestion.&lt;BR /&gt;&lt;BR /&gt;Angelo</description>
      <pubDate>Fri, 12 Sep 2008 08:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129527#M674757</guid>
      <dc:creator>SILVERSTAR</dc:creator>
      <dc:date>2008-09-12T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129528#M674758</link>
      <description>This is from one of the forum:&lt;BR /&gt;&lt;BR /&gt;get a copy of GNU awk and put its directory as the first into tha $PATH of your scripts.&lt;BR /&gt;GNU awk does not have that limit, IIRC...</description>
      <pubDate>Fri, 12 Sep 2008 08:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129528#M674758</guid>
      <dc:creator>Sandeep_Chaudhary</dc:creator>
      <dc:date>2008-09-12T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129529#M674759</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;as per other forum I checked gnu awk at this site &lt;A href="http://hpux.cs.utah.edu/" target="_blank"&gt;http://hpux.cs.utah.edu/&lt;/A&gt; but it has been removed.&lt;BR /&gt;&lt;BR /&gt;Do you know any other site ?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Angelo</description>
      <pubDate>Fri, 12 Sep 2008 09:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129529#M674759</guid>
      <dc:creator>SILVERSTAR</dc:creator>
      <dc:date>2008-09-12T09:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129530#M674760</link>
      <description>Plesae check on &lt;A href="http://freshmeat.net/projects/gawk/?branch_id=3519" target="_blank"&gt;http://freshmeat.net/projects/gawk/?branch_id=3519&lt;/A&gt;</description>
      <pubDate>Fri, 12 Sep 2008 09:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129530#M674760</guid>
      <dc:creator>Sandeep_Chaudhary</dc:creator>
      <dc:date>2008-09-12T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129531#M674761</link>
      <description>Angelo,&lt;BR /&gt;&lt;BR /&gt;I don't think sed has this limitation...&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;sed -e 's/blabla/ccccc/g' myfilename&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 12 Sep 2008 11:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129531#M674761</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2008-09-12T11:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129532#M674762</link>
      <description>Hi Angelo:&lt;BR /&gt;&lt;BR /&gt;Perl doesn't have limitations like this.&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's/blabla/ccccc/g' myfilename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129532#M674762</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-12T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129533#M674763</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;using both sed and perl each command goes in stuck with no error.&lt;BR /&gt;The ony thing i can do at that point is to kill the process, but the file is not changed.&lt;BR /&gt;&lt;BR /&gt;rgd&lt;BR /&gt;angelo</description>
      <pubDate>Fri, 12 Sep 2008 12:53:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129533#M674763</guid>
      <dc:creator>SILVERSTAR</dc:creator>
      <dc:date>2008-09-12T12:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129534#M674764</link>
      <description>Hi (again) Angelo:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; using both sed and perl each command goes in stuck with no error&lt;BR /&gt;&lt;BR /&gt;You also said that a carriage-return  delimits each line.&lt;BR /&gt;&lt;BR /&gt;If you truly have only carriage-returns (\015) without newlines (\012), then seeing any output on your terminal won't occur.  This may be very misleading.  Do:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's/blabla/ccccc/g' myfilename &amp;gt; myfilename.new&lt;BR /&gt;&lt;BR /&gt;...or, update in-place while preserving a backup copy of the original file as "*.old" :&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's/blabla/ccccc/g' myfilename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 12 Sep 2008 17:43:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129534#M674764</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-12T17:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How manage very long line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129535#M674765</link>
      <description>Using perl i get the right file !&lt;BR /&gt;thanks to everybody, overall JRF.&lt;BR /&gt;&lt;BR /&gt;Angelo</description>
      <pubDate>Mon, 15 Sep 2008 07:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-manage-very-long-line/m-p/5129535#M674765</guid>
      <dc:creator>SILVERSTAR</dc:creator>
      <dc:date>2008-09-15T07:11:27Z</dc:date>
    </item>
  </channel>
</rss>

