From owner-freebsd-questions Wed Jun 7 13: 5:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.server.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id CC24437B786 for ; Wed, 7 Jun 2000 13:05:04 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.86.170]) by mta02-svc.server.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000607210439.SIAE10065.mta02-svc.server.ntlworld.com@parish.my.domain>; Wed, 7 Jun 2000 21:04:39 +0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id UAA02756; Wed, 7 Jun 2000 20:55:41 +0100 (BST) (envelope-from mark) Date: Wed, 7 Jun 2000 20:55:40 +0100 From: Mark Ovens To: "Raymundo M. Vega" Cc: Glenn Johnson , questions@freebsd.org Subject: Re: searching for tab characters in grep Message-ID: <20000607205540.A238@parish> References: <20000605165406.A16195@node1.cluster.srrc.usda.gov> <393C4CAE.75FA1EB8@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <393C4CAE.75FA1EB8@home.com>; from RaymundoVega@home.com on Mon, Jun 05, 2000 at 05:58:22PM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 , if you use C shell you > have to key "" 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