Enclose it in a for-next type loop. Include the command to 'cd <higher directory>', then,
for each <subdirectory> in <higher directory>,
do
cd $subdirectory
do 'whatever you want it to do',
done.
I hope you realize this is quasi-psuedo code. But it should convey the general idea of my suggestion.
Last edited by bigrigdriver; 04-19-2005 at 08:35 PM.
|