Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 2000 20:55:40 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        "Raymundo M. Vega" <RaymundoVega@home.com>
Cc:        Glenn Johnson <gjohnson@nola.srrc.usda.gov>, questions@freebsd.org
Subject:   Re: searching for tab characters in grep
Message-ID:  <20000607205540.A238@parish>
In-Reply-To: <393C4CAE.75FA1EB8@home.com>; from RaymundoVega@home.com on Mon, Jun 05, 2000 at 05:58:22PM -0700
References:  <20000605165406.A16195@node1.cluster.srrc.usda.gov> <393C4CAE.75FA1EB8@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 05, 2000 at 05:58:22PM -0700, Raymundo M. Vega wrote:
> 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
> 

Or even easier, in csh(1) at least (doesn't work in sh(1)):

   grep \	 filename

the ``\'' is followed by a TAB and a SPACE, both just by pressing the
appropriate keys.

> 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

-- 
        ...and on the eighth day God created UNIX
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org             http://www.radan.com



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?20000607205540.A238>