Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2006 16:56:38 +0100
From:      Xian <ian@codepad.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: find syntax
Message-ID:  <200607051656.38641.ian@codepad.net>
In-Reply-To: <20060704075943.GA17920@lothlorien.nagual.st>
References:  <20060704075943.GA17920@lothlorien.nagual.st>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 04 July 2006 08:59, dick hoogendijk wrote:
> I want to change a string in a number of html files (recursive)
>
> In a linux group I got this line:
>
> #find /dir/to/htmlfile -name *.html -exec perl -p -i -e
> "s/nagual.st/nagual.nl/g;" {} \;
>
> This gives me an error "unknown option" and does not work.
>
> Doing a: perl -p -i -e "s/nagual.st/nagual.nl/g;" * does make the changes
> alright, but going to all html directories this way is a pain in...;-)
>
> What am I doing wrong in the first (linux) line?
> Any help appreciated.

You could try puting single quotes (') round the *.html . Just a guess.

-- 
/Xian

"Reality is merely an illusion, albeit a very persistent one."
Albert Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607051656.38641.ian>