Shell script help needed

dlp at gistdev.UUCP dlp at gistdev.UUCP
Thu Nov 24 08:35:00 AEST 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



More information about the Comp.unix.wizards mailing list