From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Fppfv-0005yh-P4 for garchives@archives.gentoo.org; Mon, 12 Jun 2006 16:54:04 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k5CGpKYY000765; Mon, 12 Jun 2006 16:51:20 GMT Received: from mxo1.broadbandsupport.net (mxo1.broadbandsupport.net [209.55.3.81]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k5CGgU49013956 for ; Mon, 12 Jun 2006 16:42:31 GMT Received: from [192.168.100.4] (unknown [207.68.230.60]) by mxo1.broadbandsupport.net (Postfix) with ESMTP id AF0A53141B6 for ; Mon, 12 Jun 2006 12:42:28 -0400 (EDT) Message-ID: <448D9974.9030000@vista-express.com> Date: Mon, 12 Jun 2006 11:42:28 -0500 From: Teresa and Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060518 X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] [OT] Question about duplicate lines in file Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-broadbandsupport.net-MailScanner-Information: Please contact the ISP for more information X-broadbandsupport.net-MailScanner: Found to be clean X-broadbandsupport.net-MailScanner-From: teendale@vista-express.com X-Spam-Status: No X-Archives-Salt: 38ec4084-2b89-4de3-852a-e6f1ff804a34 X-Archives-Hash: a74f92fa917f2fa4a86c2e37b9f760bb Hi folks, I have batched a bunch of servers in my hosts file to block, for ads and all that crap. I got them from several different places, some I have found too, and am sure there are dups in there, same server but pasted from several sources. I am not a programer at all and don't even really know what to search for. I would like to remove the duplicate entries and then put them in alphabetical order if I could. I would gladly then make this available if someone wanted to host it. I don't have a place to host it. Oh, there is 15,000 entries in my hosts file. O_O Could someone tell me how this is done? May even learn something here. If I can do this, I'm sure I will. Thanks. Dale :-) :-) -- gentoo-user@gentoo.org mailing list