bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tr: Problem with grep v2.5.1


From: Micah Cowan
Subject: Re: Tr: Problem with grep v2.5.1
Date: Fri, 18 May 2007 14:52:53 -0700
User-agent: Thunderbird 1.5.0.10 (X11/20070403)

Paul Jarc wrote:
> Micah Cowan <address@hidden> wrote:
>> Paul Jarc wrote:
>>> grep -E -B 3 '\.\.\.([013-9][0-9]{2}|2[1-9][0-9]|20[1-9])'
>> You're using -E, so it should be "..." rather than "\.\.\."
> 
> No, -E doesn't change the meaning of "\.".

You're right, of course.

>> Won't this approach have /exactly/ the same behavior?
> 
> No.  It matches "..." followed by a three-digit number other than 200,
> and also includes the previous 3 lines.  Try it.

How is that not what the -v version does?

-- 
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]