BASH script for applying permissions recursively

Dan Kegel dank at kegel.com
Thu Jun 29 16:00:31 BST 2006


On 6/29/06, Sam Morris <sam at robots.org.uk> wrote:
> >> find pathtodir -type d -exec chmod 664 {} \;
> >> find pathtodir -type d -exec chmod 755 {} \;
> >
> > I tried using those commands a while ago, and found that they choked on
> > filenames with strange characters in them. ...
>
> Ooh, if you have an example of a file that find -exec chokes on, could you
> please report a bug against coreutils? :)

He may be thinking of spaces and find -print | xargs chmod...



More information about the ubuntu-devel mailing list