Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 1999 10:55:40 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Brendan Kosowski <brendan@bmk.com.au>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: grep question
Message-ID:  <19990228105540.S7279@lemis.com>
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 Saturday, 27 February 1999 at 15:52:51 +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" )

 grep "the dog said \"woof\""

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address, home page and phone numbers
finger grog@lemis.com 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?19990228105540.S7279>