<?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: Hexadecimal computation in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770111#M896095</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Also have a look at :-&lt;BR /&gt;&lt;BR /&gt;od and xd.&lt;BR /&gt;&lt;BR /&gt;Man od, man xd.#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
    <pubDate>Tue, 23 Jul 2002 09:40:27 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2002-07-23T09:40:27Z</dc:date>
    <item>
      <title>Hexadecimal computation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770109#M896093</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am currently working on a shell script that reads hexadecimal values from &lt;BR /&gt;&lt;BR /&gt;A=987BA4&lt;BR /&gt;B=0000F2&lt;BR /&gt;&lt;BR /&gt;I have to make computations A*B/2 and present the result in decimal.&lt;BR /&gt;&lt;BR /&gt;Any suggestion how  can do this within a shell script?&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;&lt;BR /&gt;Rui.</description>
      <pubDate>Tue, 23 Jul 2002 09:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770109#M896093</guid>
      <dc:creator>Rui Vilao</dc:creator>
      <dc:date>2002-07-23T09:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hexadecimal computation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770110#M896094</link>
      <description>&lt;BR /&gt;Heres how to do it;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=66637&amp;amp;q=hex%20SUMMARY&amp;amp;fh" target="_blank"&gt;http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=66637&amp;amp;q=hex%20SUMMARY&amp;amp;fh&lt;/A&gt;</description>
      <pubDate>Tue, 23 Jul 2002 09:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770110#M896094</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-07-23T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hexadecimal computation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770111#M896095</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Also have a look at :-&lt;BR /&gt;&lt;BR /&gt;od and xd.&lt;BR /&gt;&lt;BR /&gt;Man od, man xd.#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Tue, 23 Jul 2002 09:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770111#M896095</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-07-23T09:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hexadecimal computation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770112#M896096</link>
      <description>bc(1) or dc(1) could be suitable for this usage:&lt;BR /&gt;&lt;BR /&gt;echo "ibase=16; ($A+$B)/2" | bc&lt;BR /&gt;&lt;BR /&gt;echo "16 i $A $B + 2 / p" | dc&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Tue, 23 Jul 2002 09:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770112#M896096</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2002-07-23T09:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hexadecimal computation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770113#M896097</link>
      <description>man perl&lt;BR /&gt;man bc&lt;BR /&gt;man dc&lt;BR /&gt;&lt;BR /&gt;# echo "16 i AF 0E + f" | dc&lt;BR /&gt;189&lt;BR /&gt;&lt;BR /&gt;A=987BA4&lt;BR /&gt;B=0000F2&lt;BR /&gt;C=`echo "16 i $A $B * 2 / f" | dc`&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2002 09:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770113#M896097</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-07-23T09:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hexadecimal computation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770114#M896098</link>
      <description>ooops - sorry.  There's a typo in my examples where I used a + instead of *  This also makes the brackets redundant in the bc example.</description>
      <pubDate>Tue, 23 Jul 2002 10:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hexadecimal-computation-in-shell-script/m-p/2770114#M896098</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2002-07-23T10:03:43Z</dc:date>
    </item>
  </channel>
</rss>

