<?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: grep regular expression performance in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328687#M873922</link>
    <description>[re-posted to Tru64 forum]</description>
    <pubDate>Tue, 13 Jul 2004 10:52:49 GMT</pubDate>
    <dc:creator>Jim Wagner_2</dc:creator>
    <dc:date>2004-07-13T10:52:49Z</dc:date>
    <item>
      <title>grep regular expression performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328683#M873918</link>
      <description>Hi,&lt;BR /&gt;Running OSF1 5.1 732:&lt;BR /&gt;&lt;BR /&gt;the following egrep is designed to match a quoted string, possibly containing escaped quotes (\") or other escaped characters.&lt;BR /&gt;egrep '"([^\"]+|\\.)*"'&lt;BR /&gt;This works fine for small matches like&lt;BR /&gt;"abc"&lt;BR /&gt;but for longer matches like&lt;BR /&gt;"abc abc abc abc abc abc abc abc "&lt;BR /&gt;performance degrades severely.&lt;BR /&gt;On Sun and other platforms this works fine.&lt;BR /&gt;&lt;BR /&gt;Same problem exists using regexec()&lt;BR /&gt;Has anyone seen this before, and is it fixed in a patch?&lt;BR /&gt;Alternatively, any workaround?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jul 2004 06:22:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328683#M873918</guid>
      <dc:creator>Jim Wagner_2</dc:creator>
      <dc:date>2004-07-12T06:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: grep regular expression performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328684#M873919</link>
      <description>Hi,&lt;BR /&gt;    Have you tried "awk", "gawk" or other *awk(s)? awk has better RE then grep|egrep.&lt;BR /&gt;&lt;BR /&gt;Anyway, to answer your question, for strings like "abc abc abc abc abc abc abc abc", I would use egrep '^abc'. This will match the the first "abc" and move on. But I know this will be a very narrow solution.&lt;BR /&gt;&lt;BR /&gt;Also "sed" has a "g" flag or tag which matches globally for the string, thus without this, it will only match the first instance. Give it a try.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rdgs&lt;BR /&gt;&lt;BR /&gt;Jov&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jul 2004 09:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328684#M873919</guid>
      <dc:creator>Jov</dc:creator>
      <dc:date>2004-07-13T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: grep regular expression performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328685#M873920</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Wrong Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OSF1 5.1 732 is a 4 year old Tru64 version nicknamed Zulu.&lt;BR /&gt;&lt;BR /&gt;You probably want to retry after moving to a more recent (V5.1B?) baselevel, or at least with a recent patch kit.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jul 2004 10:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328685#M873920</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-07-13T10:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: grep regular expression performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328686#M873921</link>
      <description>Hi Hein,&lt;BR /&gt;&lt;BR /&gt;Don't be too harsh. HP-UX admins will experience similar problems if HP merge more Tru64 features/fails. ;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Jov</description>
      <pubDate>Tue, 13 Jul 2004 10:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328686#M873921</guid>
      <dc:creator>Jov</dc:creator>
      <dc:date>2004-07-13T10:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: grep regular expression performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328687#M873922</link>
      <description>[re-posted to Tru64 forum]</description>
      <pubDate>Tue, 13 Jul 2004 10:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-regular-expression-performance/m-p/3328687#M873922</guid>
      <dc:creator>Jim Wagner_2</dc:creator>
      <dc:date>2004-07-13T10:52:49Z</dc:date>
    </item>
  </channel>
</rss>

