On 2004.02.16 16:03, Michelle Konzack wrote:
Hier muss ich aber doch widersprechen und aus man find zitieren (gibt es ja zum Glueck auch noch online...):Am 2004-02-16 14:40:12, schrieb Alf Werder: >Ich benutze find -exec oft und gerne. Man muß nicht nur die geschweiften >Klammern, sondern auch das abschließende Semikolon vor der Shell >verbergen: > >find . -type f -exec chmod 640 \{\} \; Heumexperimentiert und keine manpage gelesen... find . -type f -exec chmod 640 {} ';' ist der richtige weg, wenn Du die manpage gelesen hättest.
The string `{}' is replaced by the current file name being processed everywhere it occurs in the arguments to the command, not just in arguments where it is alone, as in some versions of find. Both of these constructions might need to be escaped (with a `\') or quoted to protect them from expansion by the shell.
Schoenen Gruss, Andreas