Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!tank!uxc!uxc.cso.uiuc.edu!gistdev!dlp From: dlp@gistdev.UUCP Newsgroups: comp.unix.wizards Subject: Re: Shell script help needed Message-ID: <8800001@gistdev> Date: 23 Nov 88 22:35:00 GMT References: <1872@loral.UUCP> Lines: 14 Nf-ID: #R:loral.UUCP:1872:gistdev:8800001:000:330 Nf-From: gistdev.UUCP!dlp Nov 23 16:35:00 1988 Step 3, "I do what I need to do" is going to be a lot slower than a simple execution of the shell, unless you're using Korn shell with an enormous ENV file. ~/bin/dostuff: BASEDIR=${1:-`pwd`} for NEWDIR in `find ${BASEDIR} -type d -print` do cd ${NEWDIR} echo In \"${NEWDIR}\"\; Control-D to continue. ${SHELL:=/bin/sh} done