[ubuntu-uk] rsync chgrp problem - advice, please?

Robert McWilliam rmcw at allmail.net
Thu Jun 7 08:56:55 BST 2007


On Thu, 07 Jun 2007 08:45:48 +0100
Tony Arnold <tony.arnold at manchester.ac.uk> wrote: 
> Try this instead:
> 
> find ~/music -group diana -exec chgrp root {} && chmod 664 {} \;
> 

That wont work - the shell sees the && and terminates the command there
than tries to chmod {}. It might work with a \&\& (I haven't tried it
though). 


> I'm pretty sure the first \; terminates the whole find command.
> 

It doesn't I tried it before posting as using && in the one exec was my
first thought. 

________________________________________________________
Robert McWilliam     rmcw at allmail.net    www.ormiret.com

Engineers think that equations approximate the real world.
 Scientists think that the real world approximates equations.
 Mathematicians are unable to make the connection...



More information about the ubuntu-uk mailing list