[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: SV: [Fun With Perl] Everything should be kept as simple as possib le...



>>>>> "Steve" == Steve Willer <willer@interlog.com> writes:

Steve> On Fri, 18 Jun 1999 patrik.grip-jansson@vv.se wrote:

>> >  cat names.txt|sed 's/||/, /g'|sort +0 +1
>> 
>> Well, the one thing that immediatly strikes me is that cat is
>> totally unneccessary. An ordinary redirection would look much nicer;

Steve> I realize this, but when I'm building a complicated pipe, I will often
Steve> need to change the first step (after the cat). So I got into the habit of
Steve> using cat at the beginning to make things simpler.

But no matter what the first step is, you still can type <names.txt,
either before or after the command:

	<names.txt sed s'/||/, /g' | ....

so no matter what you change 'sed' to, this will still work.

Please read the commentary on the UUOCA ... this is precisely why I
created the award, and is also one of the standard (weak :) arguments
about why the award shouldn't exist. :)

-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me

==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org