<?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: Shell script: Logical operator precedence in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987391#M66376</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;since you are new to this forum, I may put your attention to this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
    <pubDate>Tue, 27 Jun 2006 01:50:24 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2006-06-27T01:50:24Z</dc:date>
    <item>
      <title>Shell script: Logical operator precedence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987387#M66372</link>
      <description>Hi All,&lt;BR /&gt; &lt;BR /&gt; How to specify the precedence in the if/while loop?&lt;BR /&gt;&lt;BR /&gt; In C,&lt;BR /&gt; &lt;BR /&gt; if( i&lt;J&gt;k || k&lt;I&gt; &lt;BR /&gt; Like that, how to do the precedence in Shell script?&lt;BR /&gt; &lt;BR /&gt;Thanks in advance.&lt;/I&gt;&lt;/J&gt;</description>
      <pubDate>Mon, 26 Jun 2006 05:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987387#M66372</guid>
      <dc:creator>SGK</dc:creator>
      <dc:date>2006-06-26T05:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script: Logical operator precedence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987388#M66373</link>
      <description>You can make logical expressions by grouping them with -a and -o operators (similar to the &amp;amp;&amp;amp; and || operators).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ $i -lt $j ] &amp;amp;&amp;amp; [ $j -gt $k -o $k -lt $i ] ; then&lt;BR /&gt;&amp;lt;...&amp;gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2006 10:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987388#M66373</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-06-26T10:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script: Logical operator precedence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987389#M66374</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;that depends on the shell you are using.&lt;BR /&gt;In ksh or bash you can use:&lt;BR /&gt;&lt;BR /&gt;if [[ $i &amp;lt; $j &amp;amp;&amp;amp; ($j &amp;gt; $k || $k &amp;lt; $i) ]]&lt;BR /&gt;then  echo true&lt;BR /&gt;else echo false&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 26 Jun 2006 11:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987389#M66374</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-26T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script: Logical operator precedence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987390#M66375</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; Thanks all for the response.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2006 22:34:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987390#M66375</guid>
      <dc:creator>SGK</dc:creator>
      <dc:date>2006-06-26T22:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script: Logical operator precedence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987391#M66376</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;since you are new to this forum, I may put your attention to this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 27 Jun 2006 01:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-logical-operator-precedence/m-p/4987391#M66376</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-27T01:50:24Z</dc:date>
    </item>
  </channel>
</rss>

