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 for tab character


On Sun, Feb 20, 2005 at 03:55:35PM +1100, Robert Mark Bram wrote:
>I cannot seem to use grep for tabs. Here is what I have tried..
>
>And these lines show how I am trying to grep for tab, but with no luck!
>
>Robert Mark Bram - /tmp
>$grep -e [\\t]How test.txt
>
>Robert Mark Bram - /tmp
>$grep -e [\t]How test.txt
>
>Robert Mark Bram - /tmp
>$grep -e "[\t]How" test.txt
>
>Robert Mark Bram - /tmp
>$grep -e "[\\t]How" test.txt
>
>Robert Mark Bram - /tmp
>$
>
>Am I missig something? Or is it cygwin grep?

How about just using the actual tab character?  I don't see any indication that
grep is supposed to treat '\t' specially and it seems to behave that way on linux,
too.

What's wrong with just using tab?

cgf

--
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]