<?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: awk script problem  :( in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-script-problem/m-p/2839630#M90887</link>
    <description>Hi&lt;BR /&gt;I don't know exactly what this script does ;-) but there are two errors:&lt;BR /&gt;&lt;BR /&gt;awk '&lt;BR /&gt;{&lt;BR /&gt;if ( $0 ~ /^product$/ ) {&lt;BR /&gt;getline line&lt;BR /&gt;if (match (line,"tag \${1}")) {&lt;BR /&gt;while (( getline line &amp;gt; 0 ) &amp;amp;&amp;amp; (match (line,"state configured") == 0 )) {&lt;BR /&gt;if (match (line,"fileset"))&lt;BR /&gt;{&lt;BR /&gt;while (match (line,"state configured") == 0 ) {&lt;BR /&gt;getline line&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;} else {&lt;BR /&gt;printf ("product\n")&lt;BR /&gt;print line&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{ print }&lt;BR /&gt;}' /abc/INDEX &amp;gt; /abc/NewINDEX&lt;BR /&gt;&lt;BR /&gt;look at line 5 :&lt;BR /&gt;if (match (line,"tag \${1}")) {&lt;BR /&gt;and line 6&lt;BR /&gt;while (( getline line &amp;gt; 0 ) &amp;amp;&amp;amp; (match (line,"state configured") == 0 )) {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Nov 2002 06:41:25 GMT</pubDate>
    <dc:creator>Christian Gebhardt</dc:creator>
    <dc:date>2002-11-06T06:41:25Z</dc:date>
    <item>
      <title>awk script problem  :(</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-script-problem/m-p/2839629#M90886</link>
      <description>With the following awk script&lt;BR /&gt;______________________________________________&lt;BR /&gt;awk '&lt;BR /&gt; {&lt;BR /&gt;if ( $0 ~ /^product$/ ) {&lt;BR /&gt;getline line&lt;BR /&gt; if (match (line,"tag ${1}")) {&lt;BR /&gt; while (( getline line &amp;gt; 0 ) &amp;amp;&amp;amp; (match line,"state configured") == 0 )) {&lt;BR /&gt; if (match (line,"fileset"))&lt;BR /&gt; {&lt;BR /&gt; while (match (line,"state configured") == 0 )  {&lt;BR /&gt;     getline line&lt;BR /&gt;      }&lt;BR /&gt;            }&lt;BR /&gt;         }&lt;BR /&gt;       } else {&lt;BR /&gt;             printf ("product\n")&lt;BR /&gt;              print line&lt;BR /&gt;           }&lt;BR /&gt;      }&lt;BR /&gt;      else&lt;BR /&gt;      { print }&lt;BR /&gt;      }' /abc/INDEX &amp;gt; /abc/NewINDEX &lt;BR /&gt;&lt;BR /&gt;______________________________________________&lt;BR /&gt;&lt;BR /&gt;I am getting the following error :&lt;BR /&gt;_______________________________________________&lt;BR /&gt;awk: There is a regular expression error.&lt;BR /&gt;        ?, *, or + not preceded by valid regular expression&lt;BR /&gt; The source line number is 5.&lt;BR /&gt; The error context is&lt;BR /&gt;   if (match (line,"tag &amp;gt;&amp;gt;&amp;gt;  ${1}") &amp;lt;&amp;lt;&amp;lt; &lt;BR /&gt;______________________________________________&lt;BR /&gt;&lt;BR /&gt;Someone help me please...&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Aravind</description>
      <pubDate>Wed, 06 Nov 2002 05:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-script-problem/m-p/2839629#M90886</guid>
      <dc:creator>Aravind_3</dc:creator>
      <dc:date>2002-11-06T05:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: awk script problem  :(</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-script-problem/m-p/2839630#M90887</link>
      <description>Hi&lt;BR /&gt;I don't know exactly what this script does ;-) but there are two errors:&lt;BR /&gt;&lt;BR /&gt;awk '&lt;BR /&gt;{&lt;BR /&gt;if ( $0 ~ /^product$/ ) {&lt;BR /&gt;getline line&lt;BR /&gt;if (match (line,"tag \${1}")) {&lt;BR /&gt;while (( getline line &amp;gt; 0 ) &amp;amp;&amp;amp; (match (line,"state configured") == 0 )) {&lt;BR /&gt;if (match (line,"fileset"))&lt;BR /&gt;{&lt;BR /&gt;while (match (line,"state configured") == 0 ) {&lt;BR /&gt;getline line&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;} else {&lt;BR /&gt;printf ("product\n")&lt;BR /&gt;print line&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{ print }&lt;BR /&gt;}' /abc/INDEX &amp;gt; /abc/NewINDEX&lt;BR /&gt;&lt;BR /&gt;look at line 5 :&lt;BR /&gt;if (match (line,"tag \${1}")) {&lt;BR /&gt;and line 6&lt;BR /&gt;while (( getline line &amp;gt; 0 ) &amp;amp;&amp;amp; (match (line,"state configured") == 0 )) {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Nov 2002 06:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-script-problem/m-p/2839630#M90887</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2002-11-06T06:41:25Z</dc:date>
    </item>
  </channel>
</rss>

