<?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: Random alphanumeric? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824452#M940366</link>
    <description>procura,&lt;BR /&gt;&lt;BR /&gt;I agree that I'd personally do this in perl and not a shell. perl rules and shells smell!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Sun, 13 Oct 2002 18:59:47 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-10-13T18:59:47Z</dc:date>
    <item>
      <title>Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824444#M940358</link>
      <description>I am using HP-UX 10.20. I use echo $RANDOM to random generate numbers. But if i want to random generate alphabets or alphanumeric (ex: 2 characters). Can is still use $RANDOM???</description>
      <pubDate>Sat, 12 Oct 2002 14:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824444#M940358</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-12T14:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824445#M940359</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</description>
      <pubDate>Sat, 12 Oct 2002 15:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824445#M940359</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-12T15:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824446#M940360</link>
      <description>The above code is used to random generate alphabets. Is there any way to random generate alphanumerics? Thank you.</description>
      <pubDate>Sun, 13 Oct 2002 04:10:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824446#M940360</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-13T04:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824447#M940361</link>
      <description>I'm sure there's a better way but a crude method would be to combine Harry's alphabetic code with "echo ${RANDOM}".&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Sun, 13 Oct 2002 11:56:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824447#M940361</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-10-13T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824448#M940362</link>
      <description>&lt;BR /&gt;Sure, and I'll include upper/lower case:&lt;BR /&gt;&lt;BR /&gt;echo `expr $RANDOM % 62` `expr $RANDOM % 62` | awk '{alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"; 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</description>
      <pubDate>Sun, 13 Oct 2002 11:59:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824448#M940362</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-13T11:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824449#M940363</link>
      <description>And that's much more elegant than anything I could have come up with - nice one, Harry!&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Sun, 13 Oct 2002 12:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824449#M940363</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-10-13T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824450#M940364</link>
      <description>Thanks a lot. It really help a lot.</description>
      <pubDate>Sun, 13 Oct 2002 15:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824450#M940364</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-13T15:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824451#M940365</link>
      <description>Much too complicated :)&lt;BR /&gt;&lt;BR /&gt;Only able to reply now. This morning I was redirected to the US :(&lt;BR /&gt;&lt;BR /&gt;PC03:/W 501 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'&lt;BR /&gt;J&lt;BR /&gt;PC03:/W 502 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'&lt;BR /&gt;U&lt;BR /&gt;PC03:/W 503 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'&lt;BR /&gt;X&lt;BR /&gt;PC03:/W 504 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'&lt;BR /&gt;U&lt;BR /&gt;PC03:/W 505 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'&lt;BR /&gt;9&lt;BR /&gt;PC03:/W 506 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'&lt;BR /&gt;6&lt;BR /&gt;PC03:/W 507 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'&lt;BR /&gt;D&lt;BR /&gt;PC03:/W 508 $</description>
      <pubDate>Sun, 13 Oct 2002 16:35:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824451#M940365</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-10-13T16:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824452#M940366</link>
      <description>procura,&lt;BR /&gt;&lt;BR /&gt;I agree that I'd personally do this in perl and not a shell. perl rules and shells smell!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Sun, 13 Oct 2002 18:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824452#M940366</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-13T18:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824453#M940367</link>
      <description>Dear procura, thank you for your code. But i think my org unix is using an old perl interpreter. When i perl -v, it display perl version 4.0. I always trys your perl code, but it never works. I only see 5 everytime i execute your code. Is perl really that powerful? Any good tutorial on perl? Thank you.</description>
      <pubDate>Sun, 13 Oct 2002 23:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824453#M940367</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-13T23:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824454#M940368</link>
      <description>Chua Wen,&lt;BR /&gt;&lt;BR /&gt;Perl is VERY powerful and faster than shell's.&lt;BR /&gt;&lt;BR /&gt;Get a newer version here:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.8.0/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.8.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Sun, 13 Oct 2002 23:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824454#M940368</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-13T23:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824455#M940369</link>
      <description>I think the link is not working. It displays cannot find server. Is there any tutorial on perl? Can i code perl on any platform maybe Windows, Linux, Unix, mac, etc.</description>
      <pubDate>Sun, 13 Oct 2002 23:37:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824455#M940369</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-13T23:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824456#M940370</link>
      <description>You were running 10.20, right? Get my 10.20 port from &lt;A href="https://www.beepz.com/personal/merijn" target="_blank"&gt;https://www.beepz.com/personal/merijn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And - yes - it is *very* worthwhile learning perl. Perl comes with extensive on-line documentation, but the O'Reilly books "Learning Perl" and "Programming Perl 3rd ed" are a very good resource.&lt;BR /&gt;&lt;BR /&gt;Online help can be found on &lt;A href="http://www.perlmonks.org" target="_blank"&gt;http://www.perlmonks.org&lt;/A&gt; and the docs will be available on &lt;A href="http://www.perldoc.com/" target="_blank"&gt;http://www.perldoc.com/&lt;/A&gt; and the FAQ's on &lt;A href="http://perlfaq.cpan.org/" target="_blank"&gt;http://perlfaq.cpan.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Have FUN!</description>
      <pubDate>Mon, 14 Oct 2002 05:02:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824456#M940370</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-10-14T05:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824457#M940371</link>
      <description>perl will run on virtually *any* platform :)&lt;BR /&gt;&lt;BR /&gt;for win32 (no cygwin) you could try ActivePerl from &lt;A href="http://www.activestate.com" target="_blank"&gt;http://www.activestate.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you however want to make real use of a win32 box, install cygwin from &lt;A href="http://www.cygwin.com" target="_blank"&gt;http://www.cygwin.com&lt;/A&gt; which includes both perl5.6.1 and 5.8.0 (and a full X11 client and server environment)&lt;BR /&gt;&lt;BR /&gt;For Linux there is a welth of ports available.&lt;BR /&gt;&lt;BR /&gt;Mac-OS is fully supported, but you'd have to go start digging youself for that from &lt;A href="http://www.cpan.org" target="_blank"&gt;http://www.cpan.org&lt;/A&gt; because I have no Mac. The ports available from &lt;A href="ftp://download.xs4all.nl/pub/mirror/CPAN/ports/" target="_blank"&gt;ftp://download.xs4all.nl/pub/mirror/CPAN/ports/&lt;/A&gt; are not always the most recent. Ongoing searches migh give you better versions.</description>
      <pubDate>Mon, 14 Oct 2002 05:08:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824457#M940371</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-10-14T05:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Random alphanumeric?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824458#M940372</link>
      <description>Thank you procura.</description>
      <pubDate>Mon, 14 Oct 2002 09:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-alphanumeric/m-p/2824458#M940372</guid>
      <dc:creator>Chua Wen Ching</dc:creator>
      <dc:date>2002-10-14T09:07:52Z</dc:date>
    </item>
  </channel>
</rss>

