Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: UNIX: remove duplicate lines
On Wed, 3 Jan 2001, Mohan, Ross wrote:
> "HP" -
>
>
> A PERL script would do it in about 3 lines ( excluding wrappers, etc. )
> Of course, TIMTOWTDI. (ask Jared!)
>
Well, since you mentioned it:
file uniq.pl:
while(<>) {
$h{$_}='';
}
print keys %h;
--- uniq.pl < test.txt This works, but is probably much more resource intensive than 'sort -u' Jared Still Certified Oracle DBA and Part Time Perl Evangelist ;) jkstill_at_teleport.comReceived on Thu Jan 04 2001 - 01:03:25 CST
![]() |
![]() |