On Fri, Aug 18, 2000 at 06:26:42PM +1000, Howard Lowndes wrote:

> If I have a list of IPs with many duplicates, what is the best way to
> extract a list of unique IPs?

  sort -t '.' -n +0 +1 +2 +3 < list | uniq

will sort them into numerical order and strip duplicates.

Cheers,

John
-- 
"Competely pointless fact of the day:  One of my rats is called Solaris, due
to the fact it's fat and bloated.  The other is called Perl.  It's a nervous
insane little animal."  -  Ashley Penney


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to