Date: Fri, 22 Jun 2001 21:34:36 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Dag-Erling Smorgrav <des@ofug.org> Cc: Anton Berezin <tobez@tobez.org>, 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: <3B341C5C.5D17EBAB@mindspring.com> 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
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). Intentionally and naievely reading this as a 'vi', 'ed', 'sed', or 'awk' user, I'd say it copies its input to its output, replacing periods with nothing for the entirety of each input line... The problem is that you can't be certain everyone is using the same Captain Midnight Secret Decoder Ring(tm) that you happen to be using. -- Terry 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?3B341C5C.5D17EBAB>