From owner-freebsd-questions@FreeBSD.ORG Wed Jul 5 15:57:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1C4716A4DD for ; Wed, 5 Jul 2006 15:57:27 +0000 (UTC) (envelope-from ian@codepad.net) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id C46C143D7D for ; Wed, 5 Jul 2006 15:56:57 +0000 (GMT) (envelope-from ian@codepad.net) Received: from [80.229.159.44] (helo=[192.168.0.4]) by pih-relay06.plus.net with esmtp (Exim) id 1Fy9k8-0002Xe-Hp for freebsd-questions@freebsd.org; Wed, 05 Jul 2006 16:56:50 +0100 From: Xian To: freebsd-questions@freebsd.org Date: Wed, 5 Jul 2006 16:56:38 +0100 User-Agent: KMail/1.9.3 References: <20060704075943.GA17920@lothlorien.nagual.st> In-Reply-To: <20060704075943.GA17920@lothlorien.nagual.st> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607051656.38641.ian@codepad.net> Subject: Re: find syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jul 2006 15:57:27 -0000 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