From owner-freebsd-questions Sat Feb 27 5:59:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id E563815074 for ; Sat, 27 Feb 1999 05:59:39 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from scientia.demon.co.uk (ident=ben) by scientia.demon.co.uk with local (Exim 2.12 #12) id 10Gjv8-000FUv-00; Sat, 27 Feb 1999 13:36:42 +0000 (envelope-from ben@scientia.demon.co.uk) Date: Sat, 27 Feb 1999 13:36:42 +0000 From: Ben Smithurst To: Brendan Kosowski Cc: FreeBSD Questions Subject: Re: grep question Message-ID: <19990227133642.B59481@scientia.demon.co.uk> References: <19990227050246.DFDD946381@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brendan Kosowski wrote: > FreeBSD will have to get you to write a new manual for grep. No. This is nothing to do with grep really, you need to learn how your shell interprets quote characters. If you say $ grep 'the dog said "woof"' * then grep doesn't see the outer ' marks. They just tell your shell to pass what's between them as one argument. grep just sees what's between them, and uses that as the expression to search for, like the grep man page says. Read the manual pages for sh(1) and csh(1) about quoting. If you're using bash or tcsh, for example, they should use similar rules to sh and csh respectively, but you may like to check their pages too for good measure. -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message