grep, etc

Brian K. White brian at aljex.com
Wed Aug 11 15:13:33 PDT 2004


----- Original Message ----- 
From: Robert Pulliam M.D.
To: filepro-list at seaslug.org
Sent: Wednesday, August 11, 2004 3:18 PM
Subject: grep, etc


    I have created a file using the export commant in filepro.  It is text
with a newline record seperator.  the file looks like this:

ISA*00000089** *
CLM*inv123456*a*b*c         -213
SV1*23456*25*A*B            -214

i WANT TO BE ABLE TO VIEW A RANGE OF LINE USING GREP, MORE OR AWK.   IS THIS
POSSIBLE.   IE FROM -213 TO -216

tHANKS IN  ADVANCE - ROBERT P PULLIAM MD

-----------


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.

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