<?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: command 'let' in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323081#M638110</link>
    <description>Try this:&lt;BR /&gt;ADD=$(( $i + $ADD))&lt;BR /&gt;HTH</description>
    <pubDate>Mon, 05 Jul 2004 10:07:42 GMT</pubDate>
    <dc:creator>Victor Fridyev</dc:creator>
    <dc:date>2004-07-05T10:07:42Z</dc:date>
    <item>
      <title>command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323080#M638109</link>
      <description>The command let don't work with large numbers, is there another command for large numbers.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;ADD=0&lt;BR /&gt;&lt;BR /&gt;for i in $(vxprint -Aht | grep 'v ' | awk '{print $6}')&lt;BR /&gt;do&lt;BR /&gt; let ADD=$i+$ADD&lt;BR /&gt; echo $ADD&lt;BR /&gt;done</description>
      <pubDate>Mon, 05 Jul 2004 10:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323080#M638109</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2004-07-05T10:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323081#M638110</link>
      <description>Try this:&lt;BR /&gt;ADD=$(( $i + $ADD))&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 05 Jul 2004 10:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323081#M638110</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-07-05T10:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323082#M638111</link>
      <description>output:&lt;BR /&gt;...&lt;BR /&gt;2125725696&lt;BR /&gt;-1477181440&lt;BR /&gt;515112960&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;does not work (sorry)!</description>
      <pubDate>Mon, 05 Jul 2004 10:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323082#M638111</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2004-07-05T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323083#M638112</link>
      <description>Try it with awk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TOTAL=`$(vxprint -Aht | grep 'v ' | awk '{print $6}') | awk 'BEGIN {tot=0} $2 == "total" {tot=tot+$1} END`&lt;BR /&gt;&lt;BR /&gt;Or something like that - don't have vx on my servers so I can't test it...&lt;BR /&gt;&lt;BR /&gt;But I do something like this:&lt;BR /&gt;&lt;BR /&gt;ttldisk=`df -t -l | awk 'BEGIN {tot=0} $2 == "total" {tot=tot+$1} END {print (tot*512)/1024/1024/1024}'`&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 05 Jul 2004 10:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323083#M638112</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-07-05T10:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323084#M638113</link>
      <description>Try this one:&lt;BR /&gt;argus:/# typeset -i T&lt;BR /&gt;argus:/# typeset -i P&lt;BR /&gt;argus:/# T=2125725696&lt;BR /&gt;argus:/# echo $T&lt;BR /&gt;2125725696&lt;BR /&gt;argus:/# P=-1477181440&lt;BR /&gt;argus:/# echo $P&lt;BR /&gt;-1477181440&lt;BR /&gt;argus:/# T=$T+$P; echo $T&lt;BR /&gt;648544256</description>
      <pubDate>Mon, 05 Jul 2004 10:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323084#M638113</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-07-05T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323085#M638114</link>
      <description>Hi Jannik,&lt;BR /&gt;&lt;BR /&gt;try the following (for example):&lt;BR /&gt;&lt;BR /&gt;A=2457886&lt;BR /&gt;B=7756737&lt;BR /&gt;C=0&lt;BR /&gt;for i in A,B&lt;BR /&gt;do&lt;BR /&gt;C=`echo $A + $B|bc`&lt;BR /&gt;done&lt;BR /&gt;echo $C&lt;BR /&gt;&lt;BR /&gt;The "bc" command should do the trick &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Mon, 05 Jul 2004 10:23:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323085#M638114</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-07-05T10:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323086#M638115</link>
      <description>All the shells have limited math capability. Integer only and 32 bit numbers. As mentioned, awk and bc are the workarounds for extended math. They have lots of functions available too.</description>
      <pubDate>Mon, 05 Jul 2004 14:28:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323086#M638115</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-07-05T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323087#M638116</link>
      <description>Hi Jannik,&lt;BR /&gt;&lt;BR /&gt;if someone of us could help you, would you mind assining points ?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Tue, 06 Jul 2004 06:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323087#M638116</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-07-06T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323088#M638117</link>
      <description>bc command worked:&lt;BR /&gt;10240000&lt;BR /&gt;13312000&lt;BR /&gt;15933440&lt;BR /&gt;16138240&lt;BR /&gt;16449536&lt;BR /&gt;20643840&lt;BR /&gt;24838144&lt;BR /&gt;27910144&lt;BR /&gt;29106176&lt;BR /&gt;33816576&lt;BR /&gt;44302336&lt;BR /&gt;55836672&lt;BR /&gt;81002496&lt;BR /&gt;206831616&lt;BR /&gt;238288896&lt;BR /&gt;290717696&lt;BR /&gt;306446336&lt;BR /&gt;327417856&lt;BR /&gt;348389376&lt;BR /&gt;364118016&lt;BR /&gt;374603776&lt;BR /&gt;385089536&lt;BR /&gt;395575296&lt;BR /&gt;432275456&lt;BR /&gt;484704256&lt;BR /&gt;537133056&lt;BR /&gt;589561856&lt;BR /&gt;594804736&lt;BR /&gt;605290496&lt;BR /&gt;919863296&lt;BR /&gt;1129578496&lt;BR /&gt;1161035776&lt;BR /&gt;1192493056&lt;BR /&gt;1223950336&lt;BR /&gt;1244921856&lt;BR /&gt;2083782656&lt;BR /&gt;2104754176&lt;BR /&gt;2125725696&lt;BR /&gt;2817785856&lt;BR /&gt;4810080256&lt;BR /&gt;4852023296&lt;BR /&gt;4966567936&lt;BR /&gt;4971810816&lt;BR /&gt;4988588032&lt;BR /&gt;4993830912&lt;BR /&gt;5203546112&lt;BR /&gt;5207740416&lt;BR /&gt;5215080448&lt;BR /&gt;&lt;BR /&gt;Sorry for the late points!&lt;BR /&gt;&lt;BR /&gt;tnx</description>
      <pubDate>Tue, 06 Jul 2004 06:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/3323088#M638117</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2004-07-06T06:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: command 'let'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/5671271#M638118</link>
      <description>&lt;P&gt;64 bit integers should be supported in the latest ksh but not the Posix shell.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2012 08:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-let/m-p/5671271#M638118</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-05-28T08:28:37Z</dc:date>
    </item>
  </channel>
</rss>

