Welcome to the Monastery | |
PerlMonks |
Re^2: Huge files manipulationby JavaFan (Canon) |
on Nov 10, 2008 at 15:50 UTC ( [id://722673]=note: print w/replies, xml ) | Need Help?? |
One reason for not using sort -u or uniq commands is if you wish to retain the original ordering (minus the discards). As said earlier in the thread, if you want to keep ordering, just add the line number, sort, uniquify, sort on the line number and cut. Or, as a one liner: This is a standard trick.
In Section
Seekers of Perl Wisdom
|
|