Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2000 17:58:22 -0700
From:      "Raymundo M. Vega" <RaymundoVega@home.com>
To:        Glenn Johnson <gjohnson@nola.srrc.usda.gov>
Cc:        questions@FreeBSD.ORG
Subject:   Re: searching for tab characters in grep
Message-ID:  <393C4CAE.75FA1EB8@home.com>
References:  <20000605165406.A16195@node1.cluster.srrc.usda.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
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 charater is <Control I>, if you use C shell you
have to key "<Control V><ControlI>" quotes included so it
will look like:

grep "^V^I" filename

actually if i remember right the control V does not echo..

raymundo
> 
> Thanks.
> 
> --
> 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


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?393C4CAE.75FA1EB8>