> Because that starts up auto-complete. In other words, I don't know
> how to insert a literal tab into a command line.
> But I do not like that idea for scripts either - it can be difficult
> to visually discriminate a tab from a space character, which can too
> easily lead to errors.
Then try
Robert Mark Bram wrote:
> > 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.
>
> I have read in many places that \t is a metacharacter for tab in regular
> expres
Hi Christopher,
Thank you for your response!
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.
I have read in many places that \t is a metacharacter for tab in regular
expression
Try
grep ""
i.e. type 4 characters being quotes quotes.
I think that works.
(I'm not certain that just typing always (ever?) works, for me
anyway.)
Fergus
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documenta
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 [
Hi All!
I cannot seem to use grep for tabs. Here is what I have tried..
This shows that there are tabs in the file test.txt:
Robert Mark Bram - /tmp
$cat test.txt | sed s/[\\t]/tab/g
tabdr
tabHow
tabHow
tabHow
tabHow
How
How
And these lines show how I am trying to grep for tab, but with no luck!
Ro
6 matches
Mail list logo