[vox-tech] Shell Scripting Question

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


Ken Herron wrote,

> That's fine if the host has gnu find and xargs. If it doesn't, and
> you're  confident none of the directory names contain white space, then
> here's a  more portable method:
>
> 	find ... -name messages -type d -print | while read dir
> 	do
> 		chmod 777 $dir/*
> 	done

Ken,

Yep, I was using a non-GNU version of find, so Henry's solution, while
elegant, wasn't appropriate for my platform.

The solution you gave worked perfectly!  Thanks!

Richard