Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

•Re: finding and deleting repeated lines in a file

by merlyn (Sage)
on Jun 19, 2002 at 14:22 UTC ( [id://175693]=note: print w/replies, xml ) Need Help??


in reply to finding and deleting repeated lines in a file

If it's huge, best not to touch Perl, and simply use sort:
sort -o thefile -u thefile

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://175693]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-24 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found