in reply to Re: 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 code did execute without errors, but the console is showing a bar blinking on the screen. I have been trying with many files, but was returning with the a horizontal cursor blinking in the console and it stands still even after 5-6 minutes.

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

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

    How big are these files?


    Dave

      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