From owner-freebsd-questions Fri Dec 11 11:42:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA17733 for freebsd-questions-outgoing; Fri, 11 Dec 1998 11:42:35 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from chameleon.mtwest.net (chameleon.mtwest.net [208.194.108.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA17725 for ; Fri, 11 Dec 1998 11:42:33 -0800 (PST) (envelope-from jataylor@lundahl.com) Received: from lundahl.com (USR60.mtwest.net [208.194.108.160]) by chameleon.mtwest.net (8.9.1a/8.9.1) with ESMTP id MAA18092 for ; Fri, 11 Dec 1998 12:41:08 -0700 (MST) Message-ID: <3671754E.AC4F0F65@lundahl.com> Date: Fri, 11 Dec 1998 12:41:02 -0700 From: "James A. Taylor" Organization: Lundahl Instruments, Inc. X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Re: Recursing directories? References: <36716768.BBCAEA1@lundahl.com> <19981211105813.A20974@wolf.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm sure your all getting tired of hearing from me today. I wrote > > Is it possible to have a shell script recurse a directory tree? > > Still the same situation as my last email I have a directory tree > > with .shtml files. I want to recurse the directory tree renaming > > each .shtml to a .html file. Paul sent me the following script that > > allows me to mv all .shtml in a single directory: Dan Mahoney wrote: > How about: > > find . -type d -exec yourscript {} > > where {} gets filled in with the name of each directory that gets found. Casper wrote: > see man find > u'll use something like this : > > find /dir_name/ -name *.shtml -e mv {} `basenahe {} .shtml`.html; When I run find with the -exec option I get the following error find: -exec: no terminating ";" I have put a ; at the end put I still get the error. What am I doin wrong? James A. Taylor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message