<?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 data processing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/data-processing/m-p/4496852#M653472</link>
    <description>Hi Guyz,&lt;BR /&gt;I have a file containing three columns&lt;BR /&gt;1 10 A&lt;BR /&gt;11 20 B&lt;BR /&gt;21 30 C.&lt;BR /&gt;I was about to write a script that reads an input number then produce result based on the file if it is between the first two columns.&lt;BR /&gt;Example if i inputed 5. It is between 1 and 10 (based on the file) and will give me an output of A (which is the assigned letter on the third column).&lt;BR /&gt;Can someone help me how to do this? that after reading a number. it will search each line in the file to which the number is in between those ranges  then register the output of assigned letter from the 3rd column.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Cheers</description>
    <pubDate>Mon, 14 Sep 2009 11:13:33 GMT</pubDate>
    <dc:creator>Cherry Castro</dc:creator>
    <dc:date>2009-09-14T11:13:33Z</dc:date>
    <item>
      <title>data processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-processing/m-p/4496852#M653472</link>
      <description>Hi Guyz,&lt;BR /&gt;I have a file containing three columns&lt;BR /&gt;1 10 A&lt;BR /&gt;11 20 B&lt;BR /&gt;21 30 C.&lt;BR /&gt;I was about to write a script that reads an input number then produce result based on the file if it is between the first two columns.&lt;BR /&gt;Example if i inputed 5. It is between 1 and 10 (based on the file) and will give me an output of A (which is the assigned letter on the third column).&lt;BR /&gt;Can someone help me how to do this? that after reading a number. it will search each line in the file to which the number is in between those ranges  then register the output of assigned letter from the 3rd column.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Cheers</description>
      <pubDate>Mon, 14 Sep 2009 11:13:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-processing/m-p/4496852#M653472</guid>
      <dc:creator>Cherry Castro</dc:creator>
      <dc:date>2009-09-14T11:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: data processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-processing/m-p/4496853#M653473</link>
      <description>Here is a sample solution.&lt;BR /&gt;The table file is call x.txt and read as main data.&lt;BR /&gt;The target variable is passed as a variable on the command line.&lt;BR /&gt;&lt;BR /&gt;$ awk -v target=6 'target &amp;gt; $1 &amp;amp;&amp;amp; target &amp;lt; $2 {print $3; x++} END {if (!x) print "NOT IN RANGE"}' x.txt&lt;BR /&gt;&lt;BR /&gt;If the targets also come from a file, the you may want to read the table in an AWK or PERL 'BEGIN' section first and then read the values and process in the main block.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Sep 2009 11:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-processing/m-p/4496853#M653473</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-09-14T11:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: data processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-processing/m-p/4496854#M653474</link>
      <description>Thanks so much. This is exactly what resolves my case. cheers</description>
      <pubDate>Mon, 14 Sep 2009 11:34:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-processing/m-p/4496854#M653474</guid>
      <dc:creator>Cherry Castro</dc:creator>
      <dc:date>2009-09-14T11:34:47Z</dc:date>
    </item>
  </channel>
</rss>

