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 1FpqjD-00076p-Kz for garchives@archives.gentoo.org; Mon, 12 Jun 2006 18:01:32 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k5CHuTCb022853; Mon, 12 Jun 2006 17:56:29 GMT Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k5CHbsS6020685 for ; Mon, 12 Jun 2006 17:37:54 GMT Received: from [82.69.83.178] (helo=desiato.digimed.co.uk) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1FpqMM-0002Jt-8P for gentoo-user@lists.gentoo.org; Mon, 12 Jun 2006 17:37:54 +0000 Received: from krikkit.digimed.co.uk (krikkit.digimed.co.uk [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by desiato.digimed.co.uk (Postfix) with ESMTP id D22131400276 for ; Mon, 12 Jun 2006 18:37:53 +0100 (BST) Date: Mon, 12 Jun 2006 18:37:52 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Question about duplicate lines in file Message-ID: <20060612183752.543afeaf@krikkit.digimed.co.uk> In-Reply-To: <448DA232.4080809@vista-express.com> References: <448D9974.9030000@vista-express.com> <200606130224.27021.dystopianray@gmail.com> <448DA232.4080809@vista-express.com> Organization: Digital Media Production X-Mailer: Sylpheed-Claws 2.3.0 (GTK+ 2.8.18; powerpc-unknown-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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 Content-Type: multipart/signed; boundary="Sig_ad55_MFqtquIoZBImDRFq=D"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Originating-Rutherford-IP: [82.69.83.178] X-Archives-Salt: 9484576e-8ff0-4615-9de1-552a7d1e7b10 X-Archives-Hash: 753f0845857957de6a41fb095378df14 --Sig_ad55_MFqtquIoZBImDRFq=D Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 12 Jun 2006 12:19:46 -0500, Teresa and Dale wrote: > uniq -u /home/dale/Desktop/hosts /home/dale/Desktop/hostsort uniq only removes consecutive duplicate line, you need to use sort first sort file | uniq >newfile or, possibly, depending on the format of your file sort -u file >newfile --=20 Neil Bothwick Few women admit their age. Few men act theirs. --Sig_ad55_MFqtquIoZBImDRFq=D Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEjaZwum4al0N1GQMRAri3AJ4pMr6YPtntIm9gm/xLDC69xLVitwCg2wLR l10nk7Bn1RTASUvafdA9WCk= =b1N4 -----END PGP SIGNATURE----- --Sig_ad55_MFqtquIoZBImDRFq=D-- -- gentoo-user@gentoo.org mailing list