in reply to Re: random file selection
in thread random file selection

I get the 'no path specified' error for this program. I ran the program within the directory that contains the files I wish to randomly extract. I believe that this program is closest to what I am wanting.

Replies are listed 'Best First'.
Re: Re: Re: random file selection
by BrowserUk (Patriarch) on Jun 11, 2003 at 17:02 UTC

    Sorry. I guess I should have added a usage line.

    scriptname [-N=number of files] path\*.ext

    Eg. script -N=10 *.pl will print the names of 30 .pl files from the current directory.

    script "c:\My Files\*" will print the names 30 files of any type from the specified directory.

    You might need to play with it a bit to make it work under *nix.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


      I don't think that this works. Is there a simple explanation for it?

        As your error messges gives line 17 as the culprit and the script I posted only had 15 lines, I can only assume that you have modifed your version in some way. However, unless you post your version so that I can see the modifications, I cannot even begin to guess as to the cause of the problem.


        Examine what is said, not who speaks.
        "Efficiency is intelligent laziness." -David Dunham
        "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


      I don't think that this works. Is there a simple explanation for it?