Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2000 17:29:30 -0500
From:      Glenn Johnson <gjohnson@nola.srrc.usda.gov>
To:        Chris Fedde <chris@fedde.littleton.co.us>
Cc:        questions@FreeBSD.ORG
Subject:   Re: searching for tab characters in grep
Message-ID:  <20000605172930.A16444@node1.cluster.srrc.usda.gov>
In-Reply-To: <200006052204.e55M4A110918@fedde.littleton.co.us>; from chris@fedde.littleton.co.us on Mon, Jun 05, 2000 at 04:04:10PM -0600
References:  <20000605165406.A16195@node1.cluster.srrc.usda.gov> <200006052204.e55M4A110918@fedde.littleton.co.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 05, 2000 at 04:04:10PM -0600, Chris Fedde wrote:

> On Mon, 5 Jun 2000 16:54:06 -0500 Glenn Johnson wrote:
> +------------------
>
>  | I know this is probably a stupid question but I can not find the
>  | answer. How do I search for a pattern with grep when the pattern
>  | contains tab characters. I have tried using \t but it does not
>  | work.
>
>  +------------------
>
> The tab character is generated using ctrl-I (ie hold down the ctrl key
> and press I).  Most shells allow you to insert a "litteral" control
> character by preceding it with a ctrl-V.

Thanks.

I had looked at the man page for tcsh as I suspected it had something to
do with how the shell was passing characters to grep but I just did not
grasp the meaning of ctrl-V.

-- 
Glenn Johnson
USDA, ARS, SRRC			 Phone: (504) 286-4252
New Orleans, LA 70124		e-mail: gjohnson@nola.srrc.usda.gov


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000605172930.A16444>