Date: Sat, 27 Feb 1999 09:09:20 +0000 From: Mark Ovens <marko@uk.radan.com> To: Brendan Kosowski <brendan@bmk.com.au> Cc: questions@freebsd.org Subject: Re: grep question Message-ID: <19990227090920.A333@localhost> In-Reply-To: <Pine.BSF.3.96.990227154554.5415A-100000@garfield>; from Brendan Kosowski on Sat, Feb 27, 1999 at 03:52:51PM %2B1100 References: <Pine.BSF.3.96.990227154554.5415A-100000@garfield>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990227090920.A333>
