From owner-freebsd-questions Fri Dec 11 10:43:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA09875 for freebsd-questions-outgoing; Fri, 11 Dec 1998 10:43:14 -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 KAA09869 for ; Fri, 11 Dec 1998 10:43:13 -0800 (PST) (envelope-from jataylor@lundahl.com) Received: from lundahl.com (USR3.mtwest.net [208.194.108.103]) by chameleon.mtwest.net (8.9.1a/8.9.1) with ESMTP id LAA16173 for ; Fri, 11 Dec 1998 11:41:49 -0700 (MST) Message-ID: <36716768.BBCAEA1@lundahl.com> Date: Fri, 11 Dec 1998 11:41:44 -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: Recursing directories? 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 First of all thanks to Paul for his help with the mv command. 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: #!/bin/sh for i in *.shtml do j=`basename $i .shtml` mv $i $j.html done This script works and changes all of the .shtml in the current directory. Is their a way I can get the script to recurse my directory tree? Many Thanks James A. Taylor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message