grep, etc
Brian K. White
brian at aljex.com
Wed Aug 11 16:54:01 PDT 2004
Bob Stockler wrote:
> On Wed, Aug 11, 2004 at 06:13:33PM -0400, Brian K. White wrote:
>>
>> grep '-21[3-6]$' file
>>
>>
>> Those are single right quotes.
>> It works even if the matching records are not in numerical order and
>> if a non-matching record happens to have "-214" somewhere in the
>> other data before the end of the line.
>
> You win.
>
> Bob
Honestly, I hadn't read the other replies yet at the time I replied, so I
wasn't on a one-up drive.
I was pleased to see everyone else working so hard though.
And I won't say I've never done the "I know I can do better than that"
thing. :)
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
More information about the Filepro-list
mailing list