<?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: Evaluate operations in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839062#M939054</link>
    <description>If RES contains a valid integer arithmetic expression then you could evaluate it like this...&lt;BR /&gt;&lt;BR /&gt;let X=${RES}&lt;BR /&gt;&lt;BR /&gt;If RES contains any spaces then you'd have to change this to'''&lt;BR /&gt;&lt;BR /&gt;let X="${RES}"&lt;BR /&gt;&lt;BR /&gt;So&lt;BR /&gt;RES=4+5+6+76&lt;BR /&gt;let X=${RES}&lt;BR /&gt;print ${X}&lt;BR /&gt;91&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
    <pubDate>Tue, 05 Nov 2002 12:25:51 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2002-11-05T12:25:51Z</dc:date>
    <item>
      <title>Evaluate operations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839061#M939053</link>
      <description>I have an environment variable with an aritmetic operation very long &lt;BR /&gt;&lt;BR /&gt;RES=4+5+6+76+.....&lt;BR /&gt;&lt;BR /&gt;how i can evaluate this to obtain a result&lt;BR /&gt;&lt;BR /&gt;I try to save this to a file&lt;BR /&gt;&lt;BR /&gt;# echo $RES &amp;gt; op&lt;BR /&gt;# bc op&lt;BR /&gt;&lt;BR /&gt;but don't work&lt;BR /&gt;&lt;BR /&gt;thanks!</description>
      <pubDate>Tue, 05 Nov 2002 12:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839061#M939053</guid>
      <dc:creator>ASSIST</dc:creator>
      <dc:date>2002-11-05T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate operations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839062#M939054</link>
      <description>If RES contains a valid integer arithmetic expression then you could evaluate it like this...&lt;BR /&gt;&lt;BR /&gt;let X=${RES}&lt;BR /&gt;&lt;BR /&gt;If RES contains any spaces then you'd have to change this to'''&lt;BR /&gt;&lt;BR /&gt;let X="${RES}"&lt;BR /&gt;&lt;BR /&gt;So&lt;BR /&gt;RES=4+5+6+76&lt;BR /&gt;let X=${RES}&lt;BR /&gt;print ${X}&lt;BR /&gt;91&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Tue, 05 Nov 2002 12:25:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839062#M939054</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-11-05T12:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate operations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839063#M939055</link>
      <description>Hi,&lt;BR /&gt;in ksh you can try this:&lt;BR /&gt;# let RES="4+5+6+76+40"&lt;BR /&gt;# echo $RES&lt;BR /&gt;131&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Tue, 05 Nov 2002 12:28:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839063#M939055</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2002-11-05T12:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate operations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839064#M939056</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# RES=4+5+6+76+10 &lt;BR /&gt;# echo $RES | bc&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 05 Nov 2002 12:39:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/evaluate-operations/m-p/2839064#M939056</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-05T12:39:09Z</dc:date>
    </item>
  </channel>
</rss>

