From owner-freebsd-questions Mon Jun 5 15: 8:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id 9B7E637B554 for ; Mon, 5 Jun 2000 15:08:34 -0700 (PDT) (envelope-from jason@compsoc.man.ac.uk) Received: from mrbounce.compsoc.man.ac.uk ([192.84.78.5]) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 12z52t-0001D9-00; Mon, 5 Jun 2000 23:08:31 +0100 Received: from mrbusy.compsoc.man.ac.uk (root@mrbusy.compsoc.man.ac.uk [192.84.78.3]) by mrbounce.compsoc.man.ac.uk (8.9.2/8.9.2) with ESMTP id XAA79091; Mon, 5 Jun 2000 23:08:30 +0100 (BST) (envelope-from jason@compsoc.man.ac.uk) Received: (from jason@localhost) by mrbusy.compsoc.man.ac.uk (8.9.3/8.9.3/Debian/GNU) id XAA02564; Mon, 5 Jun 2000 23:08:30 +0100 Date: Mon, 5 Jun 2000 23:08:30 +0100 From: Jason Williams To: Glenn Johnson Cc: questions@freebsd.org Subject: Re: searching for tab characters in grep Message-ID: <20000605230830.I30015@mrbusy.compsoc.man.ac.uk> Reply-To: jason@compsoc.man.ac.uk References: <20000605165406.A16195@node1.cluster.srrc.usda.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000605165406.A16195@node1.cluster.srrc.usda.gov>; from gjohnson@nola.srrc.usda.gov on Mon, Jun 05, 2000 at 04:54:06PM -0500 X-Disclaimer-1: Nothing in this mail is guaranteed to be definitive or correct. X-Disclaimer-2: Nothing in this mail should be considered to represent anything but my own personal opinion. X-Lighthearted: So there :-p Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jun 05, 2000 at 04:54:06PM -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. > Well, I don't know how you'd do it in grep off-hand, but an alternative is: perl -ne 'print if /\t/' -- "Now that's an idea. Spearmint flavored rye bread. Mmm. Hey, I just said it was an idea. I didn't say it was a good idea. " -- Larry Wall jason@compsoc.man.ac.uk khendon@compsoc.man.ac.uk secretary@compsoc.man.ac.uk admin@compsoc.org.uk (finger jason@compsoc.man.ac.uk for PGP public key) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message