On Fri, 08 Jun 2007 07:46:08 +0100, "luxxius"
<[EMAIL PROTECTED]> said:
> I do have one remaining question. In the following compound
> command
>
> find ~/music -type f -group diana -exec sudo chgrp root {} \; -exec
> sudo chmod 755 {} \;
>
> what is the function of ' {} \; '?
The escaped semi colon just marks the end of the command to -exec, as
you figured. Each time find gets a result, it runs the commands in the
-exec options replacing the {} with the path to the result (there are
other things, e.g. inode number, that you can substitute in with
different symbols).
________________________________________________________
Robert McWilliam [EMAIL PROTECTED] www.ormiret.com
Everything should be made as simple as possible - but no simpler.
-- Albert Einstein
--
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/