[vox-tech] Shell Scripting Question

Richard Crawford vox-tech@lists.lugod.org
Fri, 6 Jun 2003 11:00:23 -0700 (PDT)


Tim Riley wrote,

> "Directories called messages" means there are many directories
> called "messages" like "/usr/messages", "/usr2/messages", ... Right?
>
> find /usr/messages -name $1 -print | while read i do
>   chmod 777 $i
>   echo "Modified: $i"
> done
>
> find /usr2/messages -name $1 -print | while read i do
>   chmod 777 $i
>   echo "Modified: $i"
> done


Sort of... More like,

/courses/class1/messages
/courses/class1/sectionA/messages
/courses/messages

and so on.

Hundreds of them.


Hence my search for a more generalized solution.  ;-)  I think Henry's
solution will work for me, I just haven't had a chance to try it yet.