Another variant would be if only the first n occurrences were to be removed,

        ... | change /string/ // n | ...

Glenn can probably come up with other variants.:-)
 
Regards, 
Richard Schuh 

 

> -----Original Message-----
> From: CMSTSO Pipelines Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Marty Zimelis
> Sent: Thursday, January 17, 2008 10:19 AM
> To: [email protected]
> Subject: Re: opposite of INSERT
> 
> Richard,
>    Lovely!  If this is, indeed, what Glenn was looking for, I 
> would suggest one enhancement:  If the goal is to remove a 
> string at a certain point in the record (inverse of "insert 
> <n> after..." or "insert <n> before..."), I'd code it as
> 
>       ... | change <n.m> /string/ // | ...
> 
> to avoid deleting other randomly-located occurrences of "string".
> 
>                                       Marty
> ____________________
> Martin Zimelis
> Principal
> maz/Consultancy
> 
> > -----Original Message-----
> > From: CMSTSO Pipelines Discussion List 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Schuh, Richard
> > Sent: Thursday, January 17, 2008 12:50 PM
> > To: [email protected]
> > Subject: Re: [CMS-PIPELINES] opposite of INSERT
> > 
> >  PIPE ... | change /string/ // | ...
> > 
> > Regards,
> > Richard Schuh
> > 
> >  
> > 
> > > -----Original Message-----
> > > From: CMSTSO Pipelines Discussion List 
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Glenn
> > Knickerbocker
> > > Sent: Wednesday, January 16, 2008 4:18 PM
> > > To: [email protected]
> > > Subject: opposite of INSERT
> > > 
> > > OK, I'm coming up blank:  Is there a SPECSless idiom for deleting 
> > > specified columns from the middle (or end) of the record? 
>  THREEWAY 
> > > is neat if I want the outside parts separately, but 
> > > THREEWAY|GATHER|JOIN is way heftier than one SPECS.
> > > 
> > > Hmmm, also, THREEWAY doesn't seem to behave as advertised:
> > > 
> > > > Premature  Termination:   "threeway"  terminates  when  it  
> > > discovers that no
> > > > output stream is connected.                                 
> > >                  
> > > Instead, it terminates as soon as it writes to a disconnected 
> > > stream, so I had to connect a HOLE to output 1 to keep it going.
> > > 
> > > ¬R
> > > 
> > 
> 

Reply via email to