<?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: help with script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571928#M831059</link>
    <description>im sorry, it didn,t help</description>
    <pubDate>Tue, 28 Jun 2005 02:50:27 GMT</pubDate>
    <dc:creator>George_216</dc:creator>
    <dc:date>2005-06-28T02:50:27Z</dc:date>
    <item>
      <title>help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571926#M831057</link>
      <description>Im trying to check a file with 1000s of lines all the columns and rows should be &lt;BR /&gt;&lt;BR /&gt;0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any way to run a script on this file and report any lines with any column not equal to "0.00000000E+00" &lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated. attached is a sample text file.</description>
      <pubDate>Tue, 28 Jun 2005 02:25:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571926#M831057</guid>
      <dc:creator>George_216</dc:creator>
      <dc:date>2005-06-28T02:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571927#M831058</link>
      <description>Hi,&lt;BR /&gt;See if this works for you:&lt;BR /&gt;&lt;BR /&gt;# cat filename | xargs | grep -v "0.00000000E+00"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jun 2005 02:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571927#M831058</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2005-06-28T02:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571928#M831059</link>
      <description>im sorry, it didn,t help</description>
      <pubDate>Tue, 28 Jun 2005 02:50:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571928#M831059</guid>
      <dc:creator>George_216</dc:creator>
      <dc:date>2005-06-28T02:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571929#M831060</link>
      <description>grep -v "0.00000000E+00" &lt;FILENAME&gt;&lt;BR /&gt;will work for you. You can write a script like this:&lt;BR /&gt;&lt;BR /&gt;for files in /home/testdir/*&lt;BR /&gt;do&lt;BR /&gt;  echo $files&lt;BR /&gt;  grep -v "0.00000000E+00" $files&lt;BR /&gt;  echo "****************************"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sudeesh&lt;/FILENAME&gt;</description>
      <pubDate>Tue, 28 Jun 2005 02:53:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571929#M831060</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-06-28T02:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571930#M831061</link>
      <description>your solutions will exclude all lines with 0.00000000E+00.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;for example It will exclude this line as well:&lt;BR /&gt;0.00000000E+00 4444444444 0.00000000E+00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jun 2005 02:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571930#M831061</guid>
      <dc:creator>George_216</dc:creator>
      <dc:date>2005-06-28T02:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571931#M831062</link>
      <description>If every line will have 5 entries on it (like in the example), then a slight expansion on the above suggestions:&lt;BR /&gt;&lt;BR /&gt;grep -v "0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00" file&lt;BR /&gt;&lt;BR /&gt;As this will only exclude lines which are all 0'd.&lt;BR /&gt;&lt;BR /&gt;Now, that being said, if there is a variable number of entries per line, then a quick awk:&lt;BR /&gt;&lt;BR /&gt;awk '{ count = 1;while (count &amp;lt; NF) { if ($count != "0.00000000E+00") { print; next } ; count++ } }' &amp;lt; file&lt;BR /&gt;&lt;BR /&gt;Anyway, just some ideas. ;)&lt;BR /&gt;&lt;BR /&gt;Note: with the above 'awk', if you want to only print out the different actual fields (instead of the entire line), change the 'print; next' to 'printf( "%s\n", $count)' .</description>
      <pubDate>Tue, 28 Jun 2005 08:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script/m-p/3571931#M831062</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-28T08:44:43Z</dc:date>
    </item>
  </channel>
</rss>

