<?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: parsing data in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598011#M33689</link>
    <description>Hi Nick:&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;cat infile | awk '{ if ((($2 + 0) &amp;gt; 0) || (($3 + 0) &amp;gt; 0)) print $0 }'&lt;BR /&gt;&lt;BR /&gt;or pipe the output of your command to the awk. Note: The $2 + 0 forces the comparison to be numeric.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
    <pubDate>Fri, 19 Oct 2001 14:44:31 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-10-19T14:44:31Z</dc:date>
    <item>
      <title>parsing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598008#M33686</link>
      <description>I have the output from a cronjob to report on the size of tables in a db.&lt;BR /&gt;&lt;BR /&gt;But if you look below, there are a number of tables that have 0 bytes (empty) and I want to remove them so that I only need to look at the tables with actual data in them.&lt;BR /&gt;&lt;BR /&gt;Suggestions are always appreciated.&lt;BR /&gt;&lt;BR /&gt;abs_mstr   0    0    0    0    0   0.0     0.0&lt;BR /&gt;accd_det   0    0    0    0    0   0   0.0  0.0&lt;BR /&gt;acd_det   48105   2531643    37    73    52    48105    1.0     3.8&lt;BR /&gt;acm_mstr   0    0    0    0    0   0  0.0   0.0&lt;BR /&gt;act_mstr   0    0   0     0    0   0  0.0   0.0&lt;BR /&gt;acx_mstr                   0         0     0     0     0        0    0.0     0.0&lt;BR /&gt;ac_mstr                  472     31355    47    73    66      472    1.0     5.7&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2001 14:26:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598008#M33686</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2001-10-19T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: parsing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598009#M33687</link>
      <description>Hi Nick:&lt;BR /&gt;&lt;BR /&gt;From the pattern of your data, this would do it:&lt;BR /&gt;&lt;BR /&gt;# awk '$2&amp;gt;0 {print $0}' /tmp/filein &amp;gt; /tmp/fileout&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 19 Oct 2001 14:40:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598009#M33687</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-19T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: parsing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598010#M33688</link>
      <description>Hi Nick,&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;grep [1-9] filename&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Fri, 19 Oct 2001 14:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598010#M33688</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-19T14:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: parsing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598011#M33689</link>
      <description>Hi Nick:&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;cat infile | awk '{ if ((($2 + 0) &amp;gt; 0) || (($3 + 0) &amp;gt; 0)) print $0 }'&lt;BR /&gt;&lt;BR /&gt;or pipe the output of your command to the awk. Note: The $2 + 0 forces the comparison to be numeric.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Fri, 19 Oct 2001 14:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598011#M33689</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-19T14:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: parsing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598012#M33690</link>
      <description>Nick,&lt;BR /&gt;&lt;BR /&gt;awk will help you to simplify this. You can print out only those lines that satisfy the condition on a particular (or a group of) column. If you want the second column (it is $2 in awk's parsing) to be determined as non-zero, you would give&lt;BR /&gt;&lt;BR /&gt;awk '$2&amp;gt;0 {print $0}' your_file&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 19 Oct 2001 15:09:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598012#M33690</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-19T15:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: parsing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598013#M33691</link>
      <description>Another method would be the grep below:&lt;BR /&gt;&lt;BR /&gt;grep -v "0 0 0 0 0 0.0 0.0" filename&lt;BR /&gt;&lt;BR /&gt;This will print all lines that  do not have a "0 0 0 0 0 0.0 0.0" pattern in them.&lt;BR /&gt;&lt;BR /&gt;Lou Zirko&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2001 15:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598013#M33691</guid>
      <dc:creator>Lou Zirko_1</dc:creator>
      <dc:date>2001-10-19T15:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: parsing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598014#M33692</link>
      <description>Thanks for all the solutions.&lt;BR /&gt;&lt;BR /&gt;issue closed.</description>
      <pubDate>Fri, 19 Oct 2001 15:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-data/m-p/2598014#M33692</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2001-10-19T15:32:09Z</dc:date>
    </item>
  </channel>
</rss>

