in reply to Re^3: Remove Duplicates from one text file and print them in another text file.
in thread Remove Duplicates from one text file and print them in another text file.

The files are varying a range from 8KB to 250KB. I have used couple of files having 10.83KB and 109.27KB.

  • Comment on Re^4: Remove Duplicates from one text file and print them in another text file.

Replies are listed 'Best First'.
Re^5: Remove Duplicates from one text file and print them in another text file.
by davido (Cardinal) on Jun 05, 2012 at 18:43 UTC

    Then file size (memory constraints) is not the issue. That means you either typed it wrong, or are invoking it wrong from the command line.

    The calling syntax should be something like this:

    ./scriptname filename1

    ...for a unix-like environment. Possibly something like this for Windows:

    perl scriptname filename1

    The first script I posted is correct. You just have to figure out how to use your shell environment.


    Dave