From owner-freebsd-questions@FreeBSD.ORG Tue Jul 4 22:23:32 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 5B80816A4DF for ; Tue, 4 Jul 2006 22:23:32 +0000 (UTC) (envelope-from dick@nagual.st) Received: from nagual.st (cc20684-a.assen1.dr.home.nl [82.74.2.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 861EE43D53 for ; Tue, 4 Jul 2006 22:23:16 +0000 (GMT) (envelope-from dick@nagual.st) Received: from arwen.nagual.st (arwen.nagual.nl [192.168.11.29]) by nagual.st with esmtp; Wed, 05 Jul 2006 00:23:15 +0200 id 00039827.44AAEA53.0000697E Date: Wed, 5 Jul 2006 00:23:15 +0200 From: dick hoogendijk To: fbsdq Message-Id: <20060705002315.c2242af1.dick@nagual.st> In-Reply-To: <20060704191005.34812.qmail@web60016.mail.yahoo.com> References: <200607040803.k6483e9A029133@banyan.cs.ait.ac.th> <20060704191005.34812.qmail@web60016.mail.yahoo.com> Organization: de nagual X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.19; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: find syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dick@nagual.nl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2006 22:23:32 -0000 On Tue, 4 Jul 2006 15:10:05 -0400 (EDT) Peter wrote: > > --- Olivier Nicole wrote: > > > > #find /dir/to/htmlfile -name *.html -exec perl -p -i -e > > > "s/nagual.st/nagual.nl/g;" {} \; > > > > You should escape the * that you pass to find: > > > > -name \*.html > > Or > > -name "*.html" Yes, yes, they both work ;-) The files are changed and it went very fast. Thank you for your suggestions. And I have written down this "change-files-rule" into my notebook. It is powerful! -- dick -- http://nagual.nl/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 6.1 ++ The Power to Serve