recursive shell commands, is there a simple one?

From: Conrad Whelan (whelan_at_enel.ucalgary.ca)
Date: 07/16/03


Date: Tue, 15 Jul 2003 16:59:51 -0600

hello,

I am interested in running the same command on a number of files in a
directory tree. Some of the directories in the tree contain other
directories, while some are, of course, 'leaf' nodes that contains the
files I wish to modify. I already have a script which can modify the
approriate file.

I could write a script that would do something like this, but it seems
like such a plausible operation, that I was thinking there could be a
standard unix command to do it. If anyone knows of one, I'd be happy to
hear it (my unix power tools book doesn't have one). If not, a short
script that anyone has that does this might be helpful too. I am using
BASH.

thanks in advance,
conrad whelan



Relevant Pages