From owner-freebsd-chat Fri Jun 22 20:40: 0 2001 Delivered-To: freebsd-chat@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 48FBE37B408 for ; Fri, 22 Jun 2001 20:39:56 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id FAA76296; Sat, 23 Jun 2001 05:39:53 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Anton Berezin Cc: Mike Meyer , Terry Lambert , j mckitrick , freebsd-chat@FreeBSD.ORG Subject: Re: most complex code in BSD? References: <200106222110.OAA28427@usr06.primenet.com> <20010622232942.A53155@heechee.tobez.org> <15155.47930.698005.428088@guru.mired.org> <20010622234325.B53155@heechee.tobez.org> From: Dag-Erling Smorgrav Date: 23 Jun 2001 05:39:52 +0200 In-Reply-To: <20010622234325.B53155@heechee.tobez.org> Message-ID: Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Anton Berezin writes: > perl -pe 's,.,,sg if $_{+lc}++' out > > Like this, you mean? ;-) This is perfectly understandable. It copies its input less any duplicate lines (even if they don't immediately follow the first occurrence - uniq(1) can't do this). DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message