<?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: Help me with  this shell script pls.. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060794#M64874</link>
    <description>Hein, it's pretty easy to do in a bash shell too..  at least with bash/ash/ksh.&lt;BR /&gt;&lt;BR /&gt;The iteration can be simply done with a stacked list with a an iterator:&lt;BR /&gt;&lt;BR /&gt;  ${STACK:$ITERATOR:1}&lt;BR /&gt;&lt;BR /&gt;Can easy go for infinite depth.. but it's output could get messy after a while.&lt;BR /&gt;&lt;BR /&gt;In any case, the original post still looks like it's set up to try brute-force a password..&lt;BR /&gt;&lt;BR /&gt;Karthik, what is the purpose of the list supposed to be?</description>
    <pubDate>Mon, 27 Aug 2007 23:29:38 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2007-08-27T23:29:38Z</dc:date>
    <item>
      <title>Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060789#M64869</link>
      <description>The output expected out of the script is that a,b,c,....z should have all the combinations of alphabets and numbers with it For ex: first line o/p should be &lt;BR /&gt;1.ab&lt;BR /&gt;2.ac&lt;BR /&gt;3.ad&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;az&lt;BR /&gt;aba&lt;BR /&gt;abc&lt;BR /&gt;abd&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.......till a9999999........9........9&lt;BR /&gt;                     &lt;BR /&gt;can any 1 tel me how to do it.i have loaded the array for u in the below program.Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;j=0;&lt;BR /&gt;for i in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9&lt;BR /&gt;do&lt;BR /&gt;dod[$j]=$i;&lt;BR /&gt;echo "${dod[$j]}";&lt;BR /&gt;i=$i+1;&lt;BR /&gt;j=$j+1;&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2007 08:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060789#M64869</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2007-08-27T08:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060790#M64870</link>
      <description>It might help to know what you are intending to do.  Just to get:&lt;BR /&gt;&lt;BR /&gt;aa&lt;BR /&gt;ab&lt;BR /&gt;ac&lt;BR /&gt;ad&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;ax&lt;BR /&gt;ay&lt;BR /&gt;az&lt;BR /&gt;ba&lt;BR /&gt;bb&lt;BR /&gt;bc&lt;BR /&gt;bd&lt;BR /&gt;&lt;BR /&gt;You are going to need multiple loops. Just incrementing the variable by 1 isn't doing anything.</description>
      <pubDate>Mon, 27 Aug 2007 12:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060790#M64870</guid>
      <dc:creator>Glenn S. Davidson</dc:creator>
      <dc:date>2007-08-27T12:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060791#M64871</link>
      <description>Why does it sound like you're trying to make something to brute-force a password?</description>
      <pubDate>Mon, 27 Aug 2007 16:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060791#M64871</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-08-27T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060792#M64872</link>
      <description>Karthik,&lt;BR /&gt;&lt;BR /&gt;Do you realize how many solutions you are asking? If was ignore the special case you seem to request for spaces not at the end, there will be N to the power of N solutions where N is the number of characters to use.&lt;BR /&gt;So if the string just goes from a .. c then there are 9 solutions. But from a .. j gives 10 billion solutions. It goes uphill very quickly form there. Exponentially!&lt;BR /&gt;&lt;BR /&gt;Clearly not a job for a shell script.&lt;BR /&gt;Not really a job for perl either, but for a real C program... if it is a real job to begin with and not a 'student exam question'.&lt;BR /&gt;&lt;BR /&gt;The seemingly 'growing' string length can be handle by adding a 'space' in front of the a .. z sequence.&lt;BR /&gt;&lt;BR /&gt;You also seem to have an odd end condition:&lt;BR /&gt;'a99999...9' !&lt;BR /&gt;not&lt;BR /&gt;'z99999...9' ?&lt;BR /&gt;nor&lt;BR /&gt;'999999...9' ?&lt;BR /&gt;&lt;BR /&gt;Anyway...&lt;BR /&gt;Here is SAMPLE solution in PERL.&lt;BR /&gt;A REAL solution must be in a compiled language and would not 'built' the output string over an over but rather 'maintain' it while it maintains the counters.&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my (@current,@symbols,$max,$j);&lt;BR /&gt;my $count = 0;&lt;BR /&gt;my $total = 0;&lt;BR /&gt;my $i = 0;&lt;BR /&gt;my $very_last = 0;&lt;BR /&gt;&lt;BR /&gt;for (' ', 'a'..'c', '0'..'2') {$current[$count] = 0; $symbols[$count++] = $_}&lt;BR /&gt;$count--;&lt;BR /&gt;$max = $count**$count;&lt;BR /&gt;while (!$very_last) {&lt;BR /&gt;    my $text = '';&lt;BR /&gt;    for $j (0..$count) { $text .= $symbols[$current[$j]] }&lt;BR /&gt;    printf "%7d $text\n", $total++, $text;&lt;BR /&gt;    for $j (0..$count) {&lt;BR /&gt;        if ($j == $count) { $very_last++; last }&lt;BR /&gt;        my $x = $current[$j];&lt;BR /&gt;        if (($j &amp;amp;&amp;amp; $x++ &amp;lt; $count) || $x++ &amp;lt; 3 ) {&lt;BR /&gt;            $current[$j] = $x;&lt;BR /&gt;            last;&lt;BR /&gt;        } else {&lt;BR /&gt;            $current[$j] = 1;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;print "Lines: $total\n"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sample results below....&lt;BR /&gt;Close to what is requested... all values are there... for a small subset.&lt;BR /&gt;( Send money and I'll get them in the right order  :-)&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      0&lt;BR /&gt;      1 a&lt;BR /&gt;      2 b&lt;BR /&gt;      3 c&lt;BR /&gt;      4 aa&lt;BR /&gt;      5 ba&lt;BR /&gt;      6 ca&lt;BR /&gt;      7 ab&lt;BR /&gt;      8 bb&lt;BR /&gt;      9 cb&lt;BR /&gt;     10 ac&lt;BR /&gt;     11 bc&lt;BR /&gt;     12 cc&lt;BR /&gt;     13 a0&lt;BR /&gt;     14 b0&lt;BR /&gt;     15 c0&lt;BR /&gt;     16 a1&lt;BR /&gt;     17 b1&lt;BR /&gt;     18 c1&lt;BR /&gt;     19 a2&lt;BR /&gt;     20 b2&lt;BR /&gt;     21 c2&lt;BR /&gt;     22 aaa&lt;BR /&gt;:&lt;BR /&gt;  27988 a12222&lt;BR /&gt;  27989 b12222&lt;BR /&gt;  27990 c12222&lt;BR /&gt;  27991 a22222&lt;BR /&gt;  27992 b22222&lt;BR /&gt;  27993 c22222&lt;BR /&gt;Lines: 27994&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2007 21:47:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060792#M64872</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-08-27T21:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060793#M64873</link>
      <description>&lt;!--!*#--&gt;Ooops, forgot the 'retain format flag'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my (@current,@symbols,$max,$j);&lt;BR /&gt;my $count = 0;&lt;BR /&gt;my $total = 0;&lt;BR /&gt;my $i = 0;&lt;BR /&gt;my $very_last = 0;&lt;BR /&gt;&lt;BR /&gt;for (' ', 'a'..'c', '0'..'2') {&lt;BR /&gt;    $current[$count] = 0; &lt;BR /&gt;    $symbols[$count++] = $_;&lt;BR /&gt;    }&lt;BR /&gt;$count--;&lt;BR /&gt;while (!$very_last) {&lt;BR /&gt;    $total++;&lt;BR /&gt;    my $text = '';&lt;BR /&gt;    for $j (0..$count) { $text .= $symbols[$current[$j]] }&lt;BR /&gt;    print $text,"\n";&lt;BR /&gt;    for $j (0..$count) {&lt;BR /&gt;        if ($j == $count) { $very_last++; last }&lt;BR /&gt;        my $x = $current[$j];&lt;BR /&gt;        if (($j &amp;amp;&amp;amp; $x++ &amp;lt; $count) || $x++ &amp;lt; 3 ) {&lt;BR /&gt;            $current[$j] = $x;&lt;BR /&gt;            last;&lt;BR /&gt;        } else {&lt;BR /&gt;            $current[$j] = 1;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;print "Lines: $total\n"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2007 21:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060793#M64873</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-08-27T21:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060794#M64874</link>
      <description>Hein, it's pretty easy to do in a bash shell too..  at least with bash/ash/ksh.&lt;BR /&gt;&lt;BR /&gt;The iteration can be simply done with a stacked list with a an iterator:&lt;BR /&gt;&lt;BR /&gt;  ${STACK:$ITERATOR:1}&lt;BR /&gt;&lt;BR /&gt;Can easy go for infinite depth.. but it's output could get messy after a while.&lt;BR /&gt;&lt;BR /&gt;In any case, the original post still looks like it's set up to try brute-force a password..&lt;BR /&gt;&lt;BR /&gt;Karthik, what is the purpose of the list supposed to be?</description>
      <pubDate>Mon, 27 Aug 2007 23:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060794#M64874</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-08-27T23:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060795#M64875</link>
      <description>&amp;gt;&amp;gt; Hein, it's pretty easy to do in a bash shell too.. &lt;BR /&gt;&lt;BR /&gt;Easy? I respectfully disagree.&lt;BR /&gt;The code perhaps, sure. &lt;BR /&gt;But not the execution.&lt;BR /&gt;Maybe I'm missing something and my math is terribly wrong wrong but here is my thinking:&lt;BR /&gt;&lt;BR /&gt;Taking a .. c you can make 3*3*3 = 27 combo's right? And a few more if you add in trailing spaces, as per example below?&lt;BR /&gt;&lt;BR /&gt;To stay with comprehensive numbers, let's now limit ourself to an 11 character alphabeth : a..k. &lt;BR /&gt;Pick 1 -&amp;gt; 11 options&lt;BR /&gt;Pick twice --&amp;gt; 11*11 = 121 options&lt;BR /&gt;Pick three ---&amp;gt; 11*11*11 = 1331 options&lt;BR /&gt;Pick 11 ----------&amp;gt; 11 to the power of 11 is 285,311,670,611 options&lt;BR /&gt;Average output is 11-ish bytes (count seperator)&lt;BR /&gt;So for that miniscule subset the script will generate 3 Terabyte of data. Somehow I'm thinking a shell script will have just a tad too much overhead to finish that in a reasonable time window. &lt;BR /&gt;Make the alphabeth 13 long and we are up to 4000 Terabyte.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;Changing script above to read:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; for (' ', 'a'..'c') {&lt;BR /&gt;&lt;BR /&gt;We get:&lt;BR /&gt;&lt;BR /&gt;$ perl tmp.pl&lt;BR /&gt;&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;aa&lt;BR /&gt;ba&lt;BR /&gt;ca&lt;BR /&gt;ab&lt;BR /&gt;bb&lt;BR /&gt;cb&lt;BR /&gt;ac&lt;BR /&gt;bc&lt;BR /&gt;cc&lt;BR /&gt;aaa&lt;BR /&gt;baa&lt;BR /&gt;caa&lt;BR /&gt;aba&lt;BR /&gt;bba&lt;BR /&gt;cba&lt;BR /&gt;aca&lt;BR /&gt;bca&lt;BR /&gt;cca&lt;BR /&gt;aab&lt;BR /&gt;bab&lt;BR /&gt;cab&lt;BR /&gt;abb&lt;BR /&gt;bbb&lt;BR /&gt;cbb&lt;BR /&gt;acb&lt;BR /&gt;bcb&lt;BR /&gt;ccb&lt;BR /&gt;aac&lt;BR /&gt;bac&lt;BR /&gt;cac&lt;BR /&gt;abc&lt;BR /&gt;bbc&lt;BR /&gt;cbc&lt;BR /&gt;acc&lt;BR /&gt;bcc&lt;BR /&gt;ccc&lt;BR /&gt;Lines: 40</description>
      <pubDate>Tue, 28 Aug 2007 00:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060795#M64875</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-08-28T00:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060796#M64876</link>
      <description>Putting into memory is the mistake you're making.  You're just after output.&lt;BR /&gt;&lt;BR /&gt;A few while loops, and you're done.  Completely dynamic output creation, stacking letters on to each other.&lt;BR /&gt;&lt;BR /&gt;I've got one here that's about 40 lines long that (just mucking around) is brute-forcing a 32 character password.  Admittadly, it's only been running for about 3 mintues thus far ;)  I give it another 10 or so :P&lt;BR /&gt;&lt;BR /&gt;[root@logs tmp]# ./test.sh&lt;BR /&gt;      1: a&lt;BR /&gt;      2: b&lt;BR /&gt;      3: c&lt;BR /&gt;      4: aa&lt;BR /&gt;      5: ab&lt;BR /&gt;      6: ac&lt;BR /&gt;      7: ba&lt;BR /&gt;      8: bb&lt;BR /&gt;      9: bc&lt;BR /&gt;     10: ca&lt;BR /&gt;     11: cb&lt;BR /&gt;     12: cc&lt;BR /&gt;     13: aaa&lt;BR /&gt;     14: aab&lt;BR /&gt;     15: aac&lt;BR /&gt;     16: aba&lt;BR /&gt;     17: abb&lt;BR /&gt;     18: abc&lt;BR /&gt;     19: aca&lt;BR /&gt;     20: acb&lt;BR /&gt;     21: acc&lt;BR /&gt;     22: baa&lt;BR /&gt;     23: bab&lt;BR /&gt;     24: bac&lt;BR /&gt;     25: bba&lt;BR /&gt;     26: bbb&lt;BR /&gt;     27: bbc&lt;BR /&gt;     28: bca&lt;BR /&gt;     29: bcb&lt;BR /&gt;     30: bcc&lt;BR /&gt;     31: caa&lt;BR /&gt;     32: cab&lt;BR /&gt;     33: cac&lt;BR /&gt;     34: cba&lt;BR /&gt;     35: cbb&lt;BR /&gt;     36: cbc&lt;BR /&gt;     37: cca&lt;BR /&gt;     38: ccb&lt;BR /&gt;     39: ccc&lt;BR /&gt;&lt;BR /&gt;The output of it limited to abc/3-chara-long.</description>
      <pubDate>Tue, 28 Aug 2007 00:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060796#M64876</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-08-28T00:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060797#M64877</link>
      <description>No i am not trying to get a Brute force method or sumthing.Its just that sum 1 had told we can do this via shell script or perl script .Can u guys post the code of what u tried.I had been tryin this since days.Is there any logic for this Problem-If so just tel me that i wil do the rest and post the code back to u</description>
      <pubDate>Tue, 28 Aug 2007 02:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060797#M64877</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2007-08-28T02:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060798#M64878</link>
      <description>&lt;!--!*#--&gt;This code can be neatened up a bit, but it works:&lt;BR /&gt;&lt;BR /&gt;-=-=-=-=-=-=-=-=-=-=-=-=-=-&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;&lt;BR /&gt;STACK="abc"&lt;BR /&gt;&lt;BR /&gt;MAX_DEPTH=3&lt;BR /&gt;DEPTH=0&lt;BR /&gt;TOT=0&lt;BR /&gt;&lt;BR /&gt;declare -a STUMP ITERATOR&lt;BR /&gt;&lt;BR /&gt;ITERATOR[$DEPTH]=0&lt;BR /&gt;&lt;BR /&gt;while [ $DEPTH -lt $MAX_DEPTH ]&lt;BR /&gt;do&lt;BR /&gt;        let TOT++&lt;BR /&gt;        COUNT=0&lt;BR /&gt;        STRING=""&lt;BR /&gt;        while [ $COUNT -le $DEPTH ]&lt;BR /&gt;        do&lt;BR /&gt;                STRING="${STRING}${STACK:${ITERATOR[$COUNT]}:1}"&lt;BR /&gt;                let COUNT++&lt;BR /&gt;        done&lt;BR /&gt;        printf "%7s: %s\n" $TOT "${STRING}"&lt;BR /&gt;&lt;BR /&gt;        COUNT=$DEPTH&lt;BR /&gt;        LAST=0&lt;BR /&gt;        while [ $COUNT -ge 0 ]&lt;BR /&gt;        do&lt;BR /&gt;                if [ ${ITERATOR[$COUNT]} -eq $((${#STACK} - 1)) ]&lt;BR /&gt;                then&lt;BR /&gt;                        ITERATOR[$COUNT]=0&lt;BR /&gt;                else&lt;BR /&gt;                        LAST=1&lt;BR /&gt;                        let ITERATOR[$COUNT]++&lt;BR /&gt;                        continue 2&lt;BR /&gt;                fi&lt;BR /&gt;                let COUNT--&lt;BR /&gt;        done&lt;BR /&gt;&lt;BR /&gt;        if [ $LAST == 0 ]&lt;BR /&gt;        then&lt;BR /&gt;                let DEPTH++&lt;BR /&gt;                ITERATOR[$DEPTH]=0&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;-=-=-=-=-=-=-=-=-=-=-=-=-=-&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Aug 2007 02:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060798#M64878</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-08-28T02:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060799#M64879</link>
      <description>Stuart wrote&amp;gt; Putting into memory is the mistake you're making. You're just after output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No and No. The per script does not put it into memory either. I was just after proving that it can not be done with reasonable resources.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I've got one here that's about 40 lines long that (just mucking around) is brute-forcing a 32 character password. &lt;BR /&gt;&lt;BR /&gt;Why would you try that if you know there does not exist storage in the world to hold the results (5e49 bytes... a 5 with 49 zeroes behind it)?&lt;BR /&gt;&lt;BR /&gt;Karthik&amp;gt; Its just that sum 1 had told we can do this via shell script or perl script .&lt;BR /&gt;&lt;BR /&gt;NOT with the specification you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Can u guys post the code of what u tried.&lt;BR /&gt;&lt;BR /&gt;Perl script above &lt;BR /&gt;&lt;BR /&gt;Just change&lt;BR /&gt;&amp;gt;&amp;gt; for (' ', 'a'..'c', '0'..'2') {&lt;BR /&gt;:&lt;BR /&gt;&amp;gt;&amp;gt;  if (($j &amp;amp;&amp;amp; $x++ &amp;lt; $count) || $x++ &amp;lt; 3 ) {&lt;BR /&gt;&lt;BR /&gt;To &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; for (' ', 'a'..'z', '0'..'9') {&lt;BR /&gt;:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  if (($j &amp;amp;&amp;amp; $x++ &amp;lt; $count) || $x++ &amp;lt; 26 ) {&lt;BR /&gt;&lt;BR /&gt;If you want to go to 9999...9 the change last to:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; if ($x++ &amp;lt; $count) {&lt;BR /&gt;&lt;BR /&gt;Bash script was already posted below your reply above this one.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I had been tryin this since days.&lt;BR /&gt;&lt;BR /&gt;Ouch!&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is there any logic for this Problem-&lt;BR /&gt;&lt;BR /&gt;I just use a simple counting technique for a radix-N number. &lt;BR /&gt;You know 1 + 1 = 2... &lt;BR /&gt;9 + 1 = 0 and increment the next cell.&lt;BR /&gt;'a' + 1 = 'b'&lt;BR /&gt;'z' + 1 = ' ' and increment the next cell.&lt;BR /&gt;&lt;BR /&gt;Instead of outputting each cell directly, i look up the 'picture' in a table.&lt;BR /&gt;One could also count in pictures of course.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On an HP BL860c, with just 7 output chars, the perl script generates the 960801 words in 9.3 seconds. &lt;BR /&gt;I killed the shell script after 11:31.6 minutes ( user 7:07.3, sys 1:50.2) just before it was done :-(.&lt;BR /&gt;I should have trusted my ball park duration guestimate of 10 minutes better, allowing for a little more.&lt;BR /&gt;&lt;BR /&gt;$ wc -lc *.tmp&lt;BR /&gt;931315 7290395 bash.tmp&lt;BR /&gt;960801 8647214 perl.tmp&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Aug 2007 06:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060799#M64879</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-08-28T06:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060800#M64880</link>
      <description>The perl script there is refusing to start with the numbered values.. was that intentional?</description>
      <pubDate>Tue, 28 Aug 2007 09:08:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060800#M64880</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-08-28T09:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with  this shell script pls..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060801#M64881</link>
      <description>Surprised at the runtime difference? &lt;BR /&gt;I wasn't. Mind you, I tried under HPUX un Itanium, not Linux where bash might be more optimized.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; The perl script there is refusing to start with the numbered values.. was that intentional?&lt;BR /&gt;&lt;BR /&gt;Yes,&lt;BR /&gt;following the 'suggestion' in the original question:&lt;BR /&gt;".......till a9999999........9........9 "&lt;BR /&gt;&lt;BR /&gt;In an earlier reply I questioned whether that leading 'a' was intentional (symbol or password requirement) or just careless.&lt;BR /&gt;&lt;BR /&gt;It was implemented with the line&lt;BR /&gt;&amp;gt;&amp;gt; if (($j &amp;amp;&amp;amp; $x++ &amp;lt; $count) || $x++ &amp;lt; 3 ) {&lt;BR /&gt;So is $j, the column counter is not zero = true then go through all sample characters. If it is not true then use a different stopper, here hardcoded at 3 = 'c'.&lt;BR /&gt;To generate all, simplify that line to:&lt;BR /&gt;&amp;gt;&amp;gt; if ($x++ &amp;lt; $count) {&lt;BR /&gt;&lt;BR /&gt;Didn't i write that already above?&lt;BR /&gt;&lt;BR /&gt;I maintain that if this was to be part of a serious application, then a 'real' compiled langues is in order, not perl and certainly not a shell. The generated data should not be stored/listed, but consumed there and then.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If it was a brute-force password cracker, then uppercase would probably need to be part of the character set:&lt;BR /&gt;&amp;gt;&amp;gt; for (' ', 'A'..'Z', 'a'..'f', '0'..'9') {&lt;BR /&gt;&lt;BR /&gt;And you could restrict yourself to say 12 chars giving 'only' (26+26+10)**12 words.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Aug 2007 09:47:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-with-this-shell-script-pls/m-p/4060801#M64881</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-08-28T09:47:18Z</dc:date>
    </item>
  </channel>
</rss>

