Date: Fri, 26 Feb 1999 23:02:46 -0600 From: Jon Hamilton <hamilton@pobox.com> To: Brendan Kosowski <brendan@bmk.com.au> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: grep question Message-ID: <19990227050246.DFDD946381@pobox.com> In-Reply-To: Your message of "Sat, 27 Feb 1999 15:52:51 %2B1100." <Pine.BSF.3.96.990227154554.5415A-100000@garfield>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.3.96.990227154554.5415A-100000@garfield>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990227050246.DFDD946381>