This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Grep and matching end of line (anchoring)


> -----Original Message-----
> From: cygwin-owner On Behalf Of Shankar Unni
> Sent: 19 November 2004 19:22

> Dave Korn wrote:
> 
> >   What makes you think grep understands ^ notation to 
> indicate control
> > chars?  It doesn't say so in the info page.  (It doesn't 
> recognize [\r]
> > either.)
> 
> Umm, you're probably jumping to the wrong conclusion about 
> the OP's intent.

  Yep, we've been through that already!  Ah, the perils of dashing off a
quick reply while there are still unread mails downthread!  Either that, or
you've got a really bad email service with a half-hour delay in it!

> And you have to *pipe* the input into grep, not pass in the file as a 
> command line (in textmode mounts, this will cause grep to 
> read the file as a text file).

  Yes, but I wasn't using a textmode mount, for exactly that reason.  I
generally despise textmode mounts these days.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]