Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Remove Duplicate Lines

by rbc (Curate)
on Sep 18, 2002 at 19:01 UTC ( #198964=note: print w/replies, xml ) Need Help??

in reply to Remove Duplicate Lines

If you are on a Unix system that has a sort command that
supports the -u switch ( -u implies Unique ) you could do this
$ sort -u db.txt > outdb.txt
I know that Solaris's sort has -u and Red Hats cygwin does not.
I hope that helps :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://198964]
[choroba]: It should greatly simplify the parsing code, no flags or additional reading of the next buffer needed
[Corion]: choroba: Yeah, that's why I like that approach; it seems even quite obvious in retrospect to me, but many things are in hindsight ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2016-12-06 15:38 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (109 votes). Check out past polls.