Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 1999 19:18:22 +1100 (EST)
From:      Brendan Kosowski <brendan@bmk.com.au>
To:        Jon Hamilton <hamilton@pobox.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: grep question 
Message-ID:  <Pine.BSF.3.96.990227191505.5605A-100000@garfield>
In-Reply-To: <19990227050246.DFDD946381@pobox.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <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?Pine.BSF.3.96.990227191505.5605A-100000>