grep, etc
Jay R. Ashworth
jra at baylink.com
Thu Aug 19 08:08:42 PDT 2004
On Thu, Aug 19, 2004 at 10:46:32AM -0400, Bill Vermillion wrote:
> > Well, in the *exact* instance he used as an example, it would work.
>
> > But what happens if he wants -213 through -226?
>
> grep '-2[12][3-6]$' file :-)
Which precisely illustrates my point as to why it wouldn't work.
That won't match -217 through -222.
If the criterion is in fact numeric, treating the numbers as strings
won't work.
Cheers,
-- jra
--
Jay R. Ashworth jra at baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274
"You know: I'm a fan of photosynthesis as much as the next guy,
but if God merely wanted us to smell the flowers, he wouldn't
have invented a 3GHz microprocessor and a 3D graphics board."
-- Luke Girardi
More information about the Filepro-list
mailing list