Date: Mon, 5 Jun 2000 23:08:30 +0100 From: Jason Williams <jason@compsoc.man.ac.uk> To: Glenn Johnson <gjohnson@nola.srrc.usda.gov> Cc: questions@freebsd.org Subject: Re: searching for tab characters in grep Message-ID: <20000605230830.I30015@mrbusy.compsoc.man.ac.uk> 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 References: <20000605165406.A16195@node1.cluster.srrc.usda.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000605230830.I30015>