Date: Sat, 23 Jun 2001 10:56:05 +0200 From: Anton Berezin <tobez@tobez.org> To: Dag-Erling Smorgrav <des@ofug.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: <20010623105605.A91952@heechee.tobez.org> In-Reply-To: <xzp1yobdfuf.fsf@flood.ping.uio.no>; from des@ofug.org on Sat, Jun 23, 2001 at 05:39:52AM %2B0200 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> <xzp1yobdfuf.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 23, 2001 at 05:39:52AM +0200, Dag-Erling Smorgrav wrote: > 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). For the sake of rigor: ...ignoring case. %Anton. -- May the tuna salad be with you. 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?20010623105605.A91952>