<?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: Auto increment a character in shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824437#M720945</link>
    <description>PC03:/W 508 $ perl -le '$a="a";print++$a'&lt;BR /&gt;b&lt;BR /&gt;PC03:/W 509 $</description>
    <pubDate>Sun, 13 Oct 2002 16:37:06 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2002-10-13T16:37:06Z</dc:date>
    <item>
      <title>Auto increment a character in shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824434#M720942</link>
      <description>I had some problems on running the script below:&lt;BR /&gt;&lt;BR /&gt;inc.sh&lt;BR /&gt;-------&lt;BR /&gt;str1="ABCDEFGHIJKLMNOPQRSTUVWXYZ"&lt;BR /&gt;str2="BCDEFGHIJKLMNOPQRSTUVWXYZA"&lt;BR /&gt;pos=`expr index $str1 $char`&lt;BR /&gt;char=`expr substr $str2 $pos 1`&lt;BR /&gt;echo $char&lt;BR /&gt;&lt;BR /&gt;i want to use the script to autogenerate a character in bourne shell. I am using hp-ux 10.20. Actually i found out a shorter way, but i want to know what is the solution for the inc.sh above. Thank you.</description>
      <pubDate>Sat, 12 Oct 2002 14:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824434#M720942</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-12T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Auto increment a character in shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824435#M720943</link>
      <description>echo `expr $RANDOM % 26` `expr $RANDOM % 26` | awk '{ alphabet = "abcdefghijklmnopqrstuvwxyz"; printf("%s%s\n", substr(alphabet,$1,1), substr(alphabet,$2,1));}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 12 Oct 2002 15:59:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824435#M720943</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-12T15:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Auto increment a character in shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824436#M720944</link>
      <description>Thanks a lot. The codes really help in to solve a lot of problems.</description>
      <pubDate>Sun, 13 Oct 2002 04:06:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824436#M720944</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-13T04:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Auto increment a character in shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824437#M720945</link>
      <description>PC03:/W 508 $ perl -le '$a="a";print++$a'&lt;BR /&gt;b&lt;BR /&gt;PC03:/W 509 $</description>
      <pubDate>Sun, 13 Oct 2002 16:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-increment-a-character-in-shell/m-p/2824437#M720945</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-10-13T16:37:06Z</dc:date>
    </item>
  </channel>
</rss>

