From owner-freebsd-questions Sat Feb 27 0:19:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from garfield.bmk.com.au (bmkind.lnk.telstra.net [139.130.51.118]) by hub.freebsd.org (Postfix) with ESMTP id 650D8150FD for ; Sat, 27 Feb 1999 00:18:29 -0800 (PST) (envelope-from brendan@bmk.com.au) Received: from localhost (brendan@localhost) by garfield.bmk.com.au (8.8.7/8.8.7) with SMTP id TAA05611; Sat, 27 Feb 1999 19:18:24 +1100 (EST) (envelope-from brendan@bmk.com.au) Date: Sat, 27 Feb 1999 19:18:22 +1100 (EST) From: Brendan Kosowski X-Sender: brendan@garfield To: Jon Hamilton Cc: FreeBSD Questions Subject: Re: grep question In-Reply-To: <19990227050246.DFDD946381@pobox.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks Jon, it works well. FreeBSD will have to get you to write a new manual for grep. Best regards, Brendan... ------------------------- On Fri, 26 Feb 1999, Jon Hamilton wrote: > > In message , 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" ) > > There is (as is usual for UNIX) more than one way to do that, but one > simple solution is: > > $ grep 'the dog said "woof"' filename > > -- > Jon Hamilton > hamilton@pobox.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message