On Thu, 07 Jun 2007 08:27:32 +0100 luxxius <[EMAIL PROTECTED]> 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' > > Any thoughts? -exec wants a command ended with a semi-colon (which you have to escape to stop the shell interpreting it). Make sure you have a "\;" at the end of each of the -exec commands. The other thing I can think of is the copy/pasting the above command into a terminal will not work because of the line break, so the end of the -exec chmod wont be seen. ________________________________________________________ Robert McWilliam [EMAIL PROTECTED] www.ormiret.com Most Annoying thing to McDonald's employees: I would like a plain cheeseburger with ketchup and no cheese. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/