<?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: if test condition question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993653#M422869</link>
    <description>Hi Hunki:&lt;BR /&gt;&lt;BR /&gt;The syntax is:&lt;BR /&gt;&lt;BR /&gt;if [ $a -lt 7 -a \( $b -eq 16 -o $b -eq 8 \) ]&lt;BR /&gt;&lt;BR /&gt;...note the escaped parentheses.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 27 Jul 2006 14:03:59 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-07-27T14:03:59Z</dc:date>
    <item>
      <title>if test condition question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993652#M422868</link>
      <description>if [ $a -lt 7 -a [ $b -eq 16 -o $b -eq 8 ] ]&lt;BR /&gt;&lt;BR /&gt;I want the following condition :&lt;BR /&gt;&lt;BR /&gt;$a less than 7 and also $b should be either equal to 16 or it should be equal to 8. The above that I have gives me the following error : &lt;BR /&gt;&lt;BR /&gt;[13]: 13: unknown test operator&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jul 2006 13:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993652#M422868</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-07-27T13:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: if test condition question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993653#M422869</link>
      <description>Hi Hunki:&lt;BR /&gt;&lt;BR /&gt;The syntax is:&lt;BR /&gt;&lt;BR /&gt;if [ $a -lt 7 -a \( $b -eq 16 -o $b -eq 8 \) ]&lt;BR /&gt;&lt;BR /&gt;...note the escaped parentheses.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 27 Jul 2006 14:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993653#M422869</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-27T14:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: if test condition question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993654#M422870</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;if [ $a -lt 7 ] &amp;amp;&amp;amp; ( [ $b -eq 16 ] || [ $b -eq 8 ] ); then</description>
      <pubDate>Thu, 27 Jul 2006 14:04:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993654#M422870</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-07-27T14:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: if test condition question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993655#M422871</link>
      <description>Thanks !</description>
      <pubDate>Thu, 27 Jul 2006 14:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/if-test-condition-question/m-p/4993655#M422871</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-07-27T14:07:50Z</dc:date>
    </item>
  </channel>
</rss>

