<?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: script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787375#M833852</link>
    <description>Hi&lt;BR /&gt;Or you can use shell script&lt;BR /&gt;while read a b c&lt;BR /&gt;do&lt;BR /&gt;if [ $c -gt 100 ]&lt;BR /&gt;then&lt;BR /&gt; print a b c&lt;BR /&gt;fi&lt;BR /&gt;done</description>
    <pubDate>Fri, 16 Aug 2002 05:46:34 GMT</pubDate>
    <dc:creator>Leif Halvarsson_2</dc:creator>
    <dc:date>2002-08-16T05:46:34Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787373#M833850</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I have a text file with dat in the following format:&lt;BR /&gt;&lt;BR /&gt;A     dog       77&lt;BR /&gt;B     cat       104&lt;BR /&gt;C     lion      147&lt;BR /&gt;D     tiger     63&lt;BR /&gt;and so on.....&lt;BR /&gt;&lt;BR /&gt;I want to grep all the lines whose values are more then 100? How can I do it in hpux?&lt;BR /&gt;&lt;BR /&gt;Final result:&lt;BR /&gt;B     cat       104&lt;BR /&gt;C     lion      147&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raje.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 04:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787373#M833850</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2002-08-16T04:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787374#M833851</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;&lt;BR /&gt;awk '{if($3 &amp;gt; 100)print $0}' textfile&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 16 Aug 2002 05:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787374#M833851</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-08-16T05:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787375#M833852</link>
      <description>Hi&lt;BR /&gt;Or you can use shell script&lt;BR /&gt;while read a b c&lt;BR /&gt;do&lt;BR /&gt;if [ $c -gt 100 ]&lt;BR /&gt;then&lt;BR /&gt; print a b c&lt;BR /&gt;fi&lt;BR /&gt;done</description>
      <pubDate>Fri, 16 Aug 2002 05:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787375#M833852</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-16T05:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787376#M833853</link>
      <description>Hi Raje,&lt;BR /&gt;&lt;BR /&gt;This is the way, I tried&lt;BR /&gt;&lt;BR /&gt;while read j&lt;BR /&gt;do&lt;BR /&gt;  number=`echo $j | cut -d" " -f3 `&lt;BR /&gt;  if test "$number" -gt "100"&lt;BR /&gt;  then&lt;BR /&gt;    echo $j&lt;BR /&gt;  fi&lt;BR /&gt;done &lt;FILE&gt;&lt;/FILE&gt;B cat 104&lt;BR /&gt;C lion 147&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sukant</description>
      <pubDate>Fri, 16 Aug 2002 05:46:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787376#M833853</guid>
      <dc:creator>Sukant Naik</dc:creator>
      <dc:date>2002-08-16T05:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787377#M833854</link>
      <description>Sorry, I forgot the "$"&lt;BR /&gt;of course:&lt;BR /&gt;&lt;BR /&gt; print $a $b $c&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 05:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787377#M833854</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-16T05:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787378#M833855</link>
      <description>Hi Raje,&lt;BR /&gt;&lt;BR /&gt;awk:&lt;BR /&gt;awk '$3&amp;gt;100{print}' file&lt;BR /&gt;&lt;BR /&gt;perl:&lt;BR /&gt;perl -nae '{print if ($F[2]&amp;gt;100)}' file&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 06:03:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787378#M833855</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-08-16T06:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787379#M833856</link>
      <description>Should&lt;BR /&gt;&lt;BR /&gt;A dog567b 2&lt;BR /&gt;&lt;BR /&gt;be selected?&lt;BR /&gt;&lt;BR /&gt;if yes:&lt;BR /&gt;&lt;BR /&gt;# perl -ne '/\d+/&amp;amp;&amp;amp;$&amp;amp;&amp;gt;100&amp;amp;&amp;amp;print' infile&lt;BR /&gt;B cat 104&lt;BR /&gt;C lion 147&lt;BR /&gt;&lt;BR /&gt;if no (safer)&lt;BR /&gt;&lt;BR /&gt;# perl -ne '/\b\d+\s*$/&amp;amp;&amp;amp;$&amp;amp;&amp;gt;100&amp;amp;&amp;amp;print' infile&lt;BR /&gt;B cat 104&lt;BR /&gt;C lion 147</description>
      <pubDate>Fri, 16 Aug 2002 07:04:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2787379#M833856</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-08-16T07:04:07Z</dc:date>
    </item>
  </channel>
</rss>

