From owner-freebsd-questions Sat Feb 27 1:13:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id 6D53C15151 for ; Sat, 27 Feb 1999 01:12:46 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.12 #1) id 10GfnM-0006aj-00; Sat, 27 Feb 1999 09:12:27 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from marder-1. (rasnt-1 [193.114.228.211]) by uk.radan.com (8.6.10/8.6.10) with ESMTP id JAA01383; Sat, 27 Feb 1999 09:11:46 GMT Received: (from marko@localhost) by marder-1. (8.8.8/8.8.8) id JAA00337; Sat, 27 Feb 1999 09:09:20 GMT (envelope-from marko) Message-ID: <19990227090920.A333@localhost> Date: Sat, 27 Feb 1999 09:09:20 +0000 From: Mark Ovens To: Brendan Kosowski Cc: questions@freebsd.org Subject: Re: grep question References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Brendan Kosowski on Sat, Feb 27, 1999 at 03:52:51PM +1100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Feb 27, 1999 at 03:52:51PM +1100, Brendan Kosowski wrote: > > > How do I search for a string if it contains quotation marks ? > > " is used by grep to mark the start and end of a string : > ( eg: grep "string" filename ). > > ie: How do I tell grep to search for: ( the dog said "woof" ) > Wrap it in single quotes... % cat > scrap the dog said "woof", and then farted. ^D % grep '"woof"' scrap the dog said "woof" % HTH > > Thanks & Regards, Brendan... > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message