in reply to Re^2: 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.

How big are these files?


Dave

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

Replies are listed 'Best First'.
Re^4: Remove Duplicates from one text file and print them in another text file.
by bedohave9 (Acolyte) on Jun 05, 2012 at 17:05 UTC

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

      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