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

luxxius luxxius at googlemail.com
Thu Jun 7 08:18:51 BST 2007


Tony Arnold wrote:
<snip>
> for i in `find /home/diana/music -group diana` ; do chgrp root $i &&
> chmod 644 $i; done
> (should be all on one line, excuse the wrap)


Tony / Matthew / Robert >>> Many thanks for your quick and very helpful 
replies.

I've tried Tony's one-liner, which would work a treat with orthodox file 
names.  Sadly, a lot of mine are from CD rips, and contain spaces.  So 
the suggested script gags on the un-escaped spaces.  Rats!

Looks like I may have to do them by hand after all.

Thanks ever so much for the ideas, though, as I now know about 300% 
about how to do this than I did a couple of hours ago.  What a great list!

--
Diana





More information about the ubuntu-uk mailing list