<?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: Shell scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332998#M874094</link>
    <description>Thanks.</description>
    <pubDate>Thu, 15 Jul 2004 18:22:16 GMT</pubDate>
    <dc:creator>Ridzuan Zakaria</dc:creator>
    <dc:date>2004-07-15T18:22:16Z</dc:date>
    <item>
      <title>Shell scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332995#M874091</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to get extract the following message from below log.&lt;BR /&gt;&lt;BR /&gt;LLINE1 : CREATE OR REPLACE PACKAGE BODY dbms_repcat_utl wrapped&lt;BR /&gt;*&lt;BR /&gt;LINE2: ERROR at line 1:&lt;BR /&gt;&lt;BR /&gt;LINE3: ORA-04031: unable to allocate 4160 bytes of shared memory ("shared&lt;BR /&gt;pool","unknown object","sga heap(1,0)","state objects")&lt;BR /&gt;&lt;BR /&gt;If would like to grep any ORA-04031 error in LINE3 together with message from LINE1 (i.e CREATE OR REPLACE PACKAGE BODY dbms_repcat_utl wrapped)&lt;BR /&gt;&lt;BR /&gt;How do I do that in Korn Shell? "grep ORA-04031" will only return LINE3.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Thu, 15 Jul 2004 17:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332995#M874091</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2004-07-15T17:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332996#M874092</link>
      <description>awk '$1 ~ /CREATE/ { LINE1=$0; getline; getline LINE3; if( LINE3 ~ /.*ORA-04031.*/) printf("%s\n%s\n",LINE1,LIN&lt;BR /&gt;E3) }' &lt;INPUTFILE&gt;&lt;BR /&gt;&lt;BR /&gt;Wait for sometime - I am sure people will come up with better scripts :-)&lt;/INPUTFILE&gt;</description>
      <pubDate>Thu, 15 Jul 2004 17:39:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332996#M874092</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-07-15T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332997#M874093</link>
      <description>Have a look at this thread.. similar discussion, &lt;BR /&gt;look especially the ggrep, greb and perl solutions..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=630972" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=630972&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Abdul.</description>
      <pubDate>Thu, 15 Jul 2004 17:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332997#M874093</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-07-15T17:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332998#M874094</link>
      <description>Thanks.</description>
      <pubDate>Thu, 15 Jul 2004 18:22:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-question/m-p/3332998#M874094</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2004-07-15T18:22:16Z</dc:date>
    </item>
  </channel>
</rss>

