Re: Password Dictionary File/ Each Entry is 2 or 3 Words Concatenated?



Sebastian G. wrote:
poster3814 wrote:

Sebastian G. wrote:
Walter Roberson wrote:


As you've already been told: Such a program doesn't exist, because it's absolutely trivial. You can even implement it with a one-line shell script on almost any platform.
Then you won't mind sharing your one-line shell script with poster3814.
May I presume Windows cmd Shell?

(for /f "delims=" %i in (dictionary.txt) do \
for /f "delims=" %j in (dictionary.txt) do \
for /f "delims=" %k in (dictionary.txt) do echo %i%j%k) >output.txt

Or Bash?

(for $i in [dictionary.txt]; do; \
for $j in [dictionary.txt]; do; \
for $k in [dictionary.txt]; do; echo -n $i$j$k; end; end; end;) >output.txt

Now, need even more evidence that this is totally trivial?

For what it's worth, this didn't work for me, at least not yet; I'm not very familiar with programming with the Windows cmd shell,


Doesn't matter much, since the "help" command exists.

Anyway, any programming language does the job. Even non-Turing-complete ones like "LOOP".

Anyway, again for what it's worth, when I first ran this, I was told:

"'\' is not recognized as an internal or external command, operable program or batch file"

so I removed the two backslashes and tried again. The output file only contained one result: a concatenation of "%i," "%j," the last word in dictionary.txt, and a right parenthesis. For example:

%i%j[lastword])


Maybe you should turn off your computer and switch over to a Gameboy[tm] if you don't even know that '\' is a common annotation for "I had to insert a line break here to not mess up the formatting. You should remove it."

You would you please all the three loops into one line that they're enclosed and not compounded?

Well, as I said:

"The programming I have done was a while ago, so I'm rusty. I apologize, but that's one of the reasons I was wondering if this had already been done by other people and available on the Internet."

Also, when I was doing some programming back then, I had no need to share the code with others in such a way that I needed to add a backslash to indicate that "I had to insert a line break here to not mess up the formatting. You should remove it."

I don't feel like having to figure this out myself - at least not at this point in time - especially if someone else had already done it and made it easily available. Imagine if someone had answered, "Yes. Try out [this web site] or [that web site] or said, "Yes, [this program] or [that program] can do what you're looking for." What a waste it would be for me to "re-invent the wheel," so to speak.

So, I figured, "No harm in asking." I've got plenty of other things I should be spending my time and effort on instead.
--
Please respond to the newsgroup only. Email sent to this account goes unread.
.



Relevant Pages

  • Re: Shell or Perl for system administration
    ... > arrive soon) and want to learn UNIX system administration. ... though I am unsure which language to start with. ... > about UNIX or programming. ... If a shell script cannot do it (and there's ...
    (comp.unix.misc)
  • Re: Password Dictionary File/ Each Entry is 2 or 3 Words Concatenated?
    ... You can even implement it with a one-line shell script on almost any platform. ... very familiar with programming with the Windows cmd shell, and the programming I have done was a while ago, so I'm rusty. ... but that's one of the reasons I was wondering if this had already been done by other people and available on the Internet. ... The output file only contained one result: a concatenation of "%i," "%j," the last word in dictionary.txt, and a right parenthesis. ...
    (comp.security.misc)
  • Re: Password Dictionary File/ Each Entry is 2 or 3 Words Concatenated?
    ... You can even implement it with a one-line shell script on almost any platform. ... any programming language does the job. ... "'\' is not recognized as an internal or external command, operable program or batch file" ...
    (comp.security.misc)
  • Re: Java version problem on Solaris.
    ... Hmm... ... Aha, so it does mess with LD_LIBRARY_PATH. ... You probably want to scan that shell script for logic that will affect ...
    (comp.unix.solaris)
  • system call - how-to.
    ... well i wanted to just mess a little with perl and try if it can give ... me the same result of a small shell script i wrote a little while ago ... i tried to run a similiar perl code by typing on command line. ... zaher el siddik ...
    (comp.lang.perl.misc)