[Top][All Lists]

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

grep Follow-up: ctrl-char searching

From: Charlie ROOT
Subject: grep Follow-up: ctrl-char searching
Date: Wed, 16 Jan 2002 12:21:52 -0800 (PST)

I was hoping for some sort of escape mechanism, such as
sed and tr use, i.e. grep $'\011'. When I get a new grep
I'll try the $'\t' trick -my current grep doesn't support it.

I found it was largely a shell issue. I use sh (Borne),
which does command line expansion upon receipt of a tab,
even if after a quote. Control-v immediately prints the
shell version number. I was able to create a file with a
tab and get it to work, as was switching to bash or csh.

Thanks again, Ian and Paul.

> > grep ^t *
> Note that tab is not ^T; it is ^I.
(I knew that!!! -cringe with embarassment)

reply via email to

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