Re: Rechteproblem - rekursives 644 mit Ausschluß der Verzeichnisse
Michelle Konzack <linux4michelle@freenet.de> writes:
>
> find -type f -exec chmod 644 {} ';'
>
Das ist nicht besonders effizient. Konkret wird für jede reguläre Datei,
die find aufspürt, ein neuer Prozess gestartet:
100.000 Dateien => 100.000 gestartete Prozesse
Da ist xargs um den Faktor 1024 effizienter (oder wie viele Elemente
in argv waren gleich noch erlaubt?).
Thomas Jahns
--
"Computers are good at following instructions,
but not at reading your mind."
D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9
Reply to: