<?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: want a64l like function in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5302865#M641897</link>
    <description>it is amazing........ thanks a ton. I kudos you, thanks</description>
    <pubDate>Wed, 17 Aug 2011 09:27:40 GMT</pubDate>
    <dc:creator>arking1981</dc:creator>
    <dc:date>2011-08-17T09:27:40Z</dc:date>
    <item>
      <title>want a64l like function in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5301825#M641893</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please suggest if there is any utility in shell script to do the function of a64l.&lt;/P&gt;&lt;P&gt;I need to convert the 64based ascii password characters to interger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any available utility or methods? Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Kang&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 13:44:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5301825#M641893</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-16T13:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: want a64l like function in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5301845#M641894</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that you are going to have to write your own C code using 'a64l(3C)﻿' :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c02252931/c02252931.pdf"&gt;http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c02252931/c02252931.pdf&lt;/A&gt;&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 14:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5301845#M641894</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-08-16T14:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: want a64l like function in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5302491#M641895</link>
      <description>&lt;P&gt;thanks. but I must deal with it in shell script.&lt;/P&gt;&lt;P&gt;I only need to decode at most 1 character in one time, not too complicated, and I am thinking a couple of possible solutions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 create an array containing all base64 ascii which is "./0-9A-Za-z", then&amp;nbsp;use cut to extract ervery single char and compare it with input to decide the index, which will be the wanted integer&lt;/P&gt;&lt;P&gt;2 devide 64base ascii into 5 categories&lt;/P&gt;&lt;P&gt;&amp;nbsp; . for 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; / for 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0-9: simply plus 2 for 2-11&lt;/P&gt;&lt;P&gt;&amp;nbsp; A-Z: convert it to ASCII(65-90) and minus 53 for 12-37&lt;/P&gt;&lt;P&gt;&amp;nbsp; a-z: convert it to ASCII(97-122) and minus 59 for 38-63&lt;/P&gt;&lt;P&gt;3 use some utility to tell the index of input character in string"./0-9A-Za-z"﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I don't know if shell has such an utility. I though about grep, sed, awk and not find any way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Do you know any tool to achieve such a task?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kang&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 04:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5302491#M641895</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-17T04:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: want a64l like function in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5302813#M641896</link>
      <description>&lt;P&gt;&amp;gt;3 use some utility to tell the index of input character in string"./0-9A-Za-z"﻿&lt;/P&gt;&lt;P&gt;&amp;gt;I thought about grep, sed, awk and not find any way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;grep -n can do it but would be expensive.&amp;nbsp; ;-)&lt;/P&gt;&lt;P&gt;But you can use awk's&amp;nbsp; index:&lt;/P&gt;&lt;P&gt;awk -v char=$char '&lt;/P&gt;&lt;P&gt;BEGIN {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; print index("./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", char)-1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; exit 0&lt;BR /&gt;} ' /dev/null﻿&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 09:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5302813#M641896</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-17T09:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: want a64l like function in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5302865#M641897</link>
      <description>it is amazing........ thanks a ton. I kudos you, thanks</description>
      <pubDate>Wed, 17 Aug 2011 09:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/want-a64l-like-function-in-shell-script/m-p/5302865#M641897</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-17T09:27:40Z</dc:date>
    </item>
  </channel>
</rss>

