On Mon, Apr 22, 2002 at 09:10:26AM +0000, Martin Alfke wrote:
> You wrote:
> 
> > From: martin f krafft <[EMAIL PROTECTED]>
> > Subject: Re: File and directory permissions
> 
> What Martin sent in will work only if there are no white spaces 
> in file- and directory-names.
> 
> I would prefer this one:
> 
> find [path] -type d -printf '"%p"\n' | xargs chmod 755
> 
> (Please try first if %p is the correct term. Maybe
> %n is the correct substitution.)

or if some of your filenames have "\n" characters in them:

find . -type d -print0 | xargs -0 chmod 755

-- 
Michael Wood <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to