in reply to Remove Duplicates from one text file and print them in another text file.
Since your time frame is very very less, and presumably this isn't homework that has to be done in Perl, you might want to avoid reinventing the wheel (utilities available in any *nix system including Cygwin):
sort file.txt | uniq -d > duplicates.txt
Aaron B.
Available for small or large Perl jobs; see my home node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Remove Duplicates from one text file and print them in another text file.
by bedohave9 (Acolyte) on Jun 05, 2012 at 17:07 UTC | |
by bedohave9 (Acolyte) on Jun 05, 2012 at 17:09 UTC | |
by aaron_baugher (Curate) on Jun 06, 2012 at 17:46 UTC | |
by afoken (Chancellor) on Jun 06, 2012 at 18:14 UTC |