<?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 sed strangeness in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470748#M775273</link>
    <description>I have a series of sed commands embedded deep in a shell script that is giving me fits.  When the sed command runs, I get the following:&lt;BR /&gt;&lt;BR /&gt;xena:/home/mcdermot/71ora&amp;gt; sed -f sed_script_bad tt.tmp    &lt;BR /&gt;sed: Function 3982s/.*/ STORAGE ( INITIAL 1424 K NEXT 285 K PCTINCREASE 20 )/ cannot be parsed.&lt;BR /&gt;&lt;BR /&gt;In this example, the sed command it is choking on is:&lt;BR /&gt;&lt;BR /&gt;3982s/.*/ STORAGE ( INITIAL 1424 K NEXT 285 K PCTINCREASE 20 )/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To me this appears to be a valid sed command.  Even more fun, this "spot" at which sed says it cannot parse a command line varies depending on the specific data in the sed command script.&lt;BR /&gt;&lt;BR /&gt;In this case, sed chokes on the 44th line of a 57 line command file.  But I can edit the command script and by playing around with the spaces in any of the preceeding command lines, the sed command runs just fine.&lt;BR /&gt;&lt;BR /&gt;It doesn't matter what the input file is; I've tried a very short input file (as opposed to the long input file that is expected) and I get the same results.&lt;BR /&gt;&lt;BR /&gt;One more variable - I've tried the same sed command on an HP-UX 10.20 machine and an HP-UX 11.0 machine - the commands fails on only the HP-UX 11.0 machine.&lt;BR /&gt;&lt;BR /&gt;Any ideas?  I'll post the input command file if anyone requests it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jon</description>
    <pubDate>Tue, 05 Dec 2000 19:58:01 GMT</pubDate>
    <dc:creator>Jon McDermott</dc:creator>
    <dc:date>2000-12-05T19:58:01Z</dc:date>
    <item>
      <title>sed strangeness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470748#M775273</link>
      <description>I have a series of sed commands embedded deep in a shell script that is giving me fits.  When the sed command runs, I get the following:&lt;BR /&gt;&lt;BR /&gt;xena:/home/mcdermot/71ora&amp;gt; sed -f sed_script_bad tt.tmp    &lt;BR /&gt;sed: Function 3982s/.*/ STORAGE ( INITIAL 1424 K NEXT 285 K PCTINCREASE 20 )/ cannot be parsed.&lt;BR /&gt;&lt;BR /&gt;In this example, the sed command it is choking on is:&lt;BR /&gt;&lt;BR /&gt;3982s/.*/ STORAGE ( INITIAL 1424 K NEXT 285 K PCTINCREASE 20 )/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To me this appears to be a valid sed command.  Even more fun, this "spot" at which sed says it cannot parse a command line varies depending on the specific data in the sed command script.&lt;BR /&gt;&lt;BR /&gt;In this case, sed chokes on the 44th line of a 57 line command file.  But I can edit the command script and by playing around with the spaces in any of the preceeding command lines, the sed command runs just fine.&lt;BR /&gt;&lt;BR /&gt;It doesn't matter what the input file is; I've tried a very short input file (as opposed to the long input file that is expected) and I get the same results.&lt;BR /&gt;&lt;BR /&gt;One more variable - I've tried the same sed command on an HP-UX 10.20 machine and an HP-UX 11.0 machine - the commands fails on only the HP-UX 11.0 machine.&lt;BR /&gt;&lt;BR /&gt;Any ideas?  I'll post the input command file if anyone requests it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jon</description>
      <pubDate>Tue, 05 Dec 2000 19:58:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470748#M775273</guid>
      <dc:creator>Jon McDermott</dc:creator>
      <dc:date>2000-12-05T19:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: sed strangeness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470749#M775274</link>
      <description>I have encountered multiple "strangeness" as well in using sed. I have the issues to disappear in using GNU sed. There is a difference except I have not researched it fully enough to list those differences.</description>
      <pubDate>Tue, 05 Dec 2000 20:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470749#M775274</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-12-05T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: sed strangeness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470750#M775275</link>
      <description>Thanks for the response.  I'm hoping I don't have to go the route to gnu sed, only because the software I'm working on is what we send (actually, sell) to our customers, and if the problem is solved with gsed, I'll have to require they install gsed.  I'd rather not add anyother required software package for customers if I don't have to.&lt;BR /&gt;&lt;BR /&gt;We're going to apply the latest sed cumulative patch and libc cumulative patch tonight and see if that fixes the problem.&lt;BR /&gt;&lt;BR /&gt;Any other ideas would be welcome too.</description>
      <pubDate>Tue, 05 Dec 2000 20:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470750#M775275</guid>
      <dc:creator>Jon McDermott</dc:creator>
      <dc:date>2000-12-05T20:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: sed strangeness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470751#M775276</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you can't get sed to act right, you may have to consider using perl or awk.&lt;BR /&gt;&lt;BR /&gt;  --Bruce</description>
      <pubDate>Wed, 06 Dec 2000 03:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470751#M775276</guid>
      <dc:creator>Bruce Regittko_1</dc:creator>
      <dc:date>2000-12-06T03:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: sed strangeness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470752#M775277</link>
      <description>Hi Jon,&lt;BR /&gt;&lt;BR /&gt;As you said that 'sed' was behaving differently on 10.20 and 11.0, this points me to patch PHCO_22760 [sed(1) cumulative patch].&lt;BR /&gt;It's only been posted on 4th december 2000.&lt;BR /&gt;&lt;BR /&gt;here is the link:&lt;BR /&gt;&lt;A href="http://europe-support.external.hp.com/wpsl/bin/doc.pl/sid=5a5df3e70446f9258a/screen=wpslCandidateList" target="_blank"&gt;http://europe-support.external.hp.com/wpsl/bin/doc.pl/sid=5a5df3e70446f9258a/screen=wpslCandidateList&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Dec 2000 07:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470752#M775277</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-06T07:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: sed strangeness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470753#M775278</link>
      <description>Did you try separating the address/pattern from the command (in this case 's///') by a space? That doesn't seem to make a difference on a 10.20 system, but we don't have an 11.x system I could test on.&lt;BR /&gt;&lt;BR /&gt;Maybe it's being picky about having a space between the pattern and command? You might also try addressing the line as '3982,3982' just for variety</description>
      <pubDate>Wed, 06 Dec 2000 12:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470753#M775278</guid>
      <dc:creator>Kevin Ernst</dc:creator>
      <dc:date>2000-12-06T12:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: sed strangeness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470754#M775279</link>
      <description>Thanks for all your responses.  We applied PHCO_22800 (sed cumulative patch) and PHCO_22760 (libc cumulative patch) and I re-tested the problematic sed command and it now works.&lt;BR /&gt;&lt;BR /&gt;I will do a little more testing but I think we can consider this problem solved.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jon</description>
      <pubDate>Wed, 06 Dec 2000 13:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-strangeness/m-p/2470754#M775279</guid>
      <dc:creator>Jon McDermott</dc:creator>
      <dc:date>2000-12-06T13:20:39Z</dc:date>
    </item>
  </channel>
</rss>

