<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703669#M58608</link>
    <description>Both of the solutions worked for me. I am not sure where I picked up the " " around the number. Is that a bad habbit that I need to get rid of?&lt;BR /&gt;&lt;BR /&gt;Mr. Clay can you tell me more about the +0 and what the difference is with the +0 and with out it.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Richard</description>
    <pubDate>Mon, 15 Apr 2002 15:39:29 GMT</pubDate>
    <dc:creator>someone_4</dc:creator>
    <dc:date>2002-04-15T15:39:29Z</dc:date>
    <item>
      <title>awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703666#M58605</link>
      <description>Hello everyone , &lt;BR /&gt;&lt;BR /&gt;I have an awk one liner here.&lt;BR /&gt;&lt;BR /&gt;cat file.out | awk '{if ($3  &amp;lt; "30.00") print $1,$3}'&lt;BR /&gt;&lt;BR /&gt;And I am getting this out put.&lt;BR /&gt;&lt;BR /&gt;cdrdbs241  29.70&lt;BR /&gt;datadbs001  26.98&lt;BR /&gt;llogdbs001  0.00&lt;BR /&gt;llogdbs002  0.00&lt;BR /&gt;llogdbs003  0.00&lt;BR /&gt;llogdbs004  0.00&lt;BR /&gt;llogdbs005  0.00&lt;BR /&gt;llogdbs006  0.00&lt;BR /&gt;llogdbs007  0.00&lt;BR /&gt;llogdbs008  0.00&lt;BR /&gt;llogdbs009  0.00&lt;BR /&gt;llogdbs010  0.00&lt;BR /&gt;llogdbs011  0.00&lt;BR /&gt;llogdbs012  0.00&lt;BR /&gt;physdbs  0.00&lt;BR /&gt;pindbs001  100.00&lt;BR /&gt;pindbs002  100.00&lt;BR /&gt;pindbs003  100.00&lt;BR /&gt;pindbs004  100.00&lt;BR /&gt;pindbs005  100.00&lt;BR /&gt;pindbs006  100.00&lt;BR /&gt;pinfk1dbs001  100.00&lt;BR /&gt;pinfk2dbs001  100.00&lt;BR /&gt;pinfk3dbs001  100.00&lt;BR /&gt;pinfk4dbs001  100.00&lt;BR /&gt;pinidx1dbs001  100.00&lt;BR /&gt;pinidx2dbs001  100.00&lt;BR /&gt;pinidx3dbs001  100.00&lt;BR /&gt;pinpkdbs001  100.00&lt;BR /&gt;tgudbs001  29.95&lt;BR /&gt;&lt;BR /&gt;I cant figure out why I am getting back 100. &lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 15 Apr 2002 15:26:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703666#M58605</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-04-15T15:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703667#M58606</link>
      <description>Your are doing string comparisons. Change to $3 + 0 &amp;lt; 30. The + 0 forces a numeric context.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2002 15:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703667#M58606</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-04-15T15:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703668#M58607</link>
      <description>get rid of the quotes around 30.00.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 15 Apr 2002 15:34:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703668#M58607</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-15T15:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703669#M58608</link>
      <description>Both of the solutions worked for me. I am not sure where I picked up the " " around the number. Is that a bad habbit that I need to get rid of?&lt;BR /&gt;&lt;BR /&gt;Mr. Clay can you tell me more about the +0 and what the difference is with the +0 and with out it.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 15 Apr 2002 15:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703669#M58608</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-04-15T15:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703670#M58609</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;The adding of ZERO (0) to a string causes "normalization". Now this won't work in languages like C or C++, but it does the job in awk.&lt;BR /&gt;&lt;BR /&gt;awk '{if ($3 &amp;lt; ("30.00" + 0)) print $1,$3}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 15 Apr 2002 15:49:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2703670#M58609</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-15T15:49:20Z</dc:date>
    </item>
  </channel>
</rss>

