From owner-freebsd-questions Mon Jun 5 15:29:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id B7DE337B7D8 for ; Mon, 5 Jun 2000 15:29:42 -0700 (PDT) (envelope-from gjohnson@nola.srrc.usda.gov) Received: (from glenn@localhost) by symbion.srrc.usda.gov (8.9.3/8.9.3) id RAA16546; Mon, 5 Jun 2000 17:29:31 -0500 (CDT) (envelope-from glenn) Date: Mon, 5 Jun 2000 17:29:30 -0500 From: Glenn Johnson To: Chris Fedde Cc: questions@FreeBSD.ORG Subject: Re: searching for tab characters in grep Message-ID: <20000605172930.A16444@node1.cluster.srrc.usda.gov> References: <20000605165406.A16195@node1.cluster.srrc.usda.gov> <200006052204.e55M4A110918@fedde.littleton.co.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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