Diana, luxxius wrote: > Robert McWilliam wrote: >> find can be used to run commands: >> >> find ~/music -group diana -exec chgrp root {} \; -exec chmod >> 664 {} \; > > > Robert >>> This seems almost to work, as it seems to get round the > 'spaces in filenames' problem that the loop solution runs into. But I > get the error > > find: missing argument to `-exec'
Try this instead: find ~/music -group diana -exec chgrp root {} && chmod 664 {} \; I'm pretty sure the first \; terminates the whole find command. Regards, Tony. -- Tony Arnold, IT Security Coordinator, University of Manchester, IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL. T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039 E: [EMAIL PROTECTED], H: http://www.man.ac.uk/Tony.Arnold -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/