Skip site navigation (1)Skip section navigation (2)
Date:      23 Jun 2001 05:39:52 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Anton Berezin <tobez@tobez.org>
Cc:        Mike Meyer <mwm@mired.org>, Terry Lambert <tlambert@primenet.com>, j mckitrick <jcm@FreeBSD-uk.eu.org>, freebsd-chat@FreeBSD.ORG
Subject:   Re: most complex code in BSD?
Message-ID:  <xzp1yobdfuf.fsf@flood.ping.uio.no>
In-Reply-To: <20010622234325.B53155@heechee.tobez.org>
References:  <xzp7ky5e4ua.fsf@flood.ping.uio.no> <200106222110.OAA28427@usr06.primenet.com> <20010622232942.A53155@heechee.tobez.org> <15155.47930.698005.428088@guru.mired.org> <20010622234325.B53155@heechee.tobez.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Anton Berezin <tobez@tobez.org> writes:
> perl -pe 's,.,,sg if $_{+lc}++' <in >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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp1yobdfuf.fsf>