Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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]
[oiskuu]: Hm. that depends on kernel compiled with CONFIG_AUDITSYSCAL L
[tye]: apropos my several mentions of audit
[Corion]: At least my (non-SELinux) Debian has that config thing set. I don't have non-Debian machines handy (except Android)
[Corion]: My Android phone also has /proc/self/ loginuid, but that displays -1 (resp. 4GB). That might be because the phone is rooted.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-06-23 19:54 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.