grep, etc

Bill Vermillion fp at wjv.com
Tue Aug 17 18:43:11 PDT 2004


On Sat, Aug 14 00:55 , Men gasped, women fainted, and small children 
were reduced to tears as Jay R. Ashworth confessed to all:" 

> On Wed, Aug 11, 2004 at 04:26:03PM -0400, Bob Stockler wrote:
> > | i WANT TO BE ABLE TO VIEW A RANGE OF LINE USING GREP, MORE OR AWK.   IS THIS POSSIBLE.   IE FROM -213 TO -216
> > 
> > Yes.
> > 
> >   awk '
> >   {
> >     if ( $NF = "-213" ) { OK++ ; print ; next }
> >     if ( $NF = "-216" ) { print ; exit }
> >     if ( OK ) print
> >   }' filename

> You're always *so* awkward, Bob. 

Well sed Jay.

-- 
Bill Vermillion - bv @ wjv . com


More information about the Filepro-list mailing list