sort file | uniq > newfile

----- Original Message -----
From: "Ashley M. Kirchner" <[EMAIL PROTECTED]>
To: "Red Hat Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, September 08, 2002 3:40 AM
Subject: sort/trim file


>
>     I have a file that contains several hundred IP addresses, and the
reason it contains so many is because all of them have been repeated at some
point or another (several times).  How can I, from this old file, generate a
new file that contains only one instance of those IPs?
>
>     Probably something with cat, grep and some other routine.  If someone
can figure this out, that'd be great.
>
> --
> H | "Life is the art of drawing without an eraser." - John Gardner
>   +--------------------------------------------------------------------
>   Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
>   Director of Internet Operations / SysAdmin    .     800.441.3873 x130
>   Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave, #6
>   http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.
>
>
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
>




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to