Generate alphanumeric characterlist - no repeating more then 3 times
Hi Guys
i have spotted that script (something similar that i am looking for) http://www.linuxquestions.org/questi...y-side-862473/ and i just dont know how to use it.I am not a programmer myself and probably no need for learning that just to create one script!only need your help to modify "wje_lq" script and run it. thing like : "Just redirect standard output to a file in the normal manner" ??? and all this I.Comment out the first definition of *character-set*, by adding a semicon at the beginning of the line. II.Uncomment the second definition, which just uses "ABC", by removing the semicolon from the beginning of the line. III.Comment out the first definition of *word-length*. IV.Uncomment the second definition, which uses a word length of four. i would like to generate : 10-character combinations of the following characters (lowercase) 23456789abcdef with no more then 3 same letters repeates no metter side by side or within one line (sequence) so lets say abcdef1234 accept fabcde1234 accept ffabcd1234 accept which is probably permutation with repetable string ( where abc is not equeal to cba etc .so ti speak position does metter) fffabc1234 not acceptable -----(3 same characters) ffabcf1234 not acceptable -----( 3 same characters event thought not side by side) so generally we dont want 3 same characters apper in same line , Anybody would kindly challenge that (either linux or mac os scripts) Thanks for any help and sorry for my bad english,hope you can know what i'm looking for. Thanks |
Quote:
Quote:
There are 16*16*15*15*14*14*13*13*12*12 = 274743705600 of these sequences. Do you really wish to generate them all, or just random ones? Random ones are easy to generate using the exclusion method. Just generate 40-bit random numbers, and only print and count those that match your criteria. Here's a simple Bash example. Supply the number of sequences you want as a command-line parameter to this script: Code:
#!/bin/bash |
Helllo
Thanks for your help and suggestions Nominal Animal.I will try to build from here... |
All times are GMT -5. The time now is 04:33 PM. |