From owner-freebsd-questions@FreeBSD.ORG Tue Jul 4 07:59:45 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 8EBF016A4DE for ; Tue, 4 Jul 2006 07:59:45 +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 D847143D45 for ; Tue, 4 Jul 2006 07:59:44 +0000 (GMT) (envelope-from dick@nagual.st) Received: from localhost (localhost [127.0.0.1]) (uid 1000) by nagual.st with local; Tue, 04 Jul 2006 09:59:43 +0200 id 0003980A.44AA1FEF.00004620 Date: Tue, 4 Jul 2006 09:59:43 +0200 To: freebsd-questions Message-ID: <20060704075943.GA17920@lothlorien.nagual.st> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline User-Agent: Mutt/1.4.2.1i From: dick hoogendijk Subject: 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: Tue, 04 Jul 2006 07:59:45 -0000 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. -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 6.1 +++ The Power to Serve